Jump to content
Developer Wiki and Function Reference Links ×

Texture Functions.


Assembly

Recommended Posts

Does anyone have any pointers on the Texture functions.

I have a number of objects being created through a Menu Script that are assigned to a class with an image map texture assigned.

Objects that are simple rectangles extruded render correctly. Objects which are extruded polylines do not render correct. When I click on the object in the drawing, as soon as it becomes selected, the texture map renders. Thus it would seem that the texture mapping from the class is in order but a regeneration of the object is required to get the mapping to work. Not sure how I can get this regen to happen in script.

Also all the objects are created in the same way. They are extruded on Z axis at the origin then are rotated and moved into location. However when the object renders the orientation of the map is different on every object?.

Can anyone point me to any good documentation on the render functions or have any good knowledge to share.

Can anyone expand on how to use this:

PROCEDURE SetTexMapInt(

h :HANDLE;

partID :LONGINT;

selector :INTEGER;

value :INTEGER);

I think this is the texture Selectors but not sure what the PartID or the Value Index are.

What I want to do is to

1) Assign the object to use class texture.

2) Set the orientation of the object to be consistent.

3) Ideally I would like the texture origin coordinate to be the world.

Any guidance as always is appreciated.

Thanks.

Link to comment

First question: ReDraw or RedrawAll?

Other questions: have a look at SetObjectVariableReal/Boolean/Longint/Int, in the Appendix you'll find that 500-550 is about Textures.

From the online FR:

PartID:

partID is texture part, overall is 3

Value:

Value is one of the:

kPlaneSpace = 0;

kSphereSpace = 1;

kCylinderSpace = 2;

kAlgorithmicSpace = 3; {Space that wraps around the object most}

Algorithmic means either the "perimeter" or "roof" mapping type.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...