-
1. Re: setting texture for materials seems to be broken/have never worked with PRC files
mvid Oct 7, 2011 6:53 AM (in response to A. Grahn)May be PRC objects are NURBS, so do not support textures,
while U3D does not support NURBS and everything is converted to texturable meshes
when saved as U3D?
And in any case - examles, examples! Upload a test PDF file!
-
2. Re: setting texture for materials seems to be broken/have never worked with PRC files
A. Grahn Oct 10, 2011 12:32 AM (in response to mvid)Thanks, Michail.
I would attach example files if I could. Are file attachments possible in this forum? Cannot find the button.
I created a PRC with a simple quadrilateral using Asymptote:
import three;
currentprojection=perspective(0,0,1,center=true);
size(5cm);
draw(surface((-4,0,-4)--(4,0,-4)--(4,0,4)--(-4,0,4)--cycle),red);
Are even flat objects like this one made of nurbs?
Alexander
-
3. Re: setting texture for materials seems to be broken/have never worked with PRC files
mvid Oct 10, 2011 3:49 AM (in response to A. Grahn)> Are even flat objects like this one made of nurbs?
Yes, flat rectangles are nurbs objects by default in Asymptote.
Try to tell Asymptote to use triangle meshes for them
(set tesselate option to the Asymptote render),
but it may be better to talk about that a the Asymptote forum.
You can check how objects are implemented yourself, if you enable
"Show Physical Properties" in the Model Tree and look at the "Node Info"
property (it will read "Tessellation" if the object is a triangle mesh).
BTW, tessellated data support (including textures) is present in the PRC output library Asymptote uses,
just not yet exposed in Asymptote.

