[X3D-Public] Quadric surface

Alexei Sourin (Assoc Prof) assourin at ntu.edu.sg
Mon Jan 11 05:23:16 PST 2010


Following my email, below is a code defining parametrically a torus with as many LODs as required. It is also available here http://www3.ntu.edu.sg/home/assourin/teaching/LOD/lod2a.wrl  (with the FVRML plugin installed)



Best Regards,

Alexei Sourin





EXTERNPROTO MyShape[

            exposedField SFString color

            exposedField MFInt32 shapeRes ]"MyShapeProto.wrl"



LOD {  range [5,8,12,20,80]

level [

   MyShape {shapeRes [100 100]   }

   MyShape {shapeRes [75 75]     }

   MyShape {shapeRes [50 50]     }

   MyShape {shapeRes [30 30]     }

   MyShape {shapeRes [20 20]     }

   MyShape {shapeRes [10 10]     }

]    }



.............................................................................



PROTO MyShape[

            exposedField MFInt32 shapeRes [10 10]    ]

{

FShape {

appearance Appearance {

material Material {

diffuseColor 1 1 1

   }    }

geometry FGeometry {

resolution IS shapeRes

parameters [0.00001 6.2831853  0.00001  6.2831853]

definition "

x=(2 + 1*cos(u)) * cos(v);

y=(2 + 1*cos(u)) * sin(v);

z=1*sin(u);"       }}

}



[cid:image002.png at 01CA9303.E9A3EDE0]

-----Original Message-----

From: Alexei Sourin (Assoc Prof)

Sent: Monday, January 11, 2010 8:53 PM

To: 'Tom Sparks'; 'Alan Hudson'

Cc: X3D Graphics public mailing list

Subject: RE: [X3D-Public] Quadric surface



In FVRML/FX3D LOD can be done at the function level so that for different distances from the observer different rendering (polygonization) resolutions can be defined.



Best Regards,

Alexei Sourin





-----Original Message-----

From: Tom Sparks [mailto:tom_a_sparks at yahoo.com.au]

Sent: Monday, January 11, 2010 5:50 PM

To: 'Alan Hudson'; Alexei Sourin (Assoc Prof)

Cc: X3D Graphics public mailing list

Subject: RE: [X3D-Public] Quadric surface



--- On Mon, 11/1/10, Alexei Sourin (Assoc Prof) <assourin at ntu.edu.sg> wrote:



> You can also use FVRML or FX3D

> function-based extension to directly write an equation of

> your surface.

>

> http://www3.ntu.edu.sg/home/assourin/FVRML.htm

>

>

> Best Regards,

> Alexei Sourin

<snip>



I looked at it a while back, but it has no LODing features

to deal with super big 500,000Km+ models with centimeter detail levels



tom sparks





      __________________________________________________________________________________

See what's on at the movies in your area. Find out now: http://au.movies.yahoo.com/session-times/

________________________________
CONFIDENTIALITY: This email is intended solely for the person(s) named. The contents may be confidential and/or privileged. If you are not the intended recipient, please delete it, notify us, and do not copy or use it, nor disclose its contents. Thank you.

Towards A Sustainable Earth: Print Only When Necessary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20100111/2f77ec16/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 442737 bytes
Desc: image002.png
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20100111/2f77ec16/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oledata.mso
Type: application/octet-stream
Size: 329882 bytes
Desc: oledata.mso
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20100111/2f77ec16/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.emz
Type: application/octet-stream
Size: 354174 bytes
Desc: image003.emz
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20100111/2f77ec16/attachment-0003.obj>


More information about the X3D-Public mailing list