DWF

Reply
Contributor
TheUnknown
Posts: 20
Registered: ‎08-04-2006
Message 1 of 3 (165 Views)

Confusing OpCodes?!

165 Views, 2 Replies
11-18-2007 05:27 PM
Hello all,

Today, I encountered the following sequence of opcodes generated by the toolkit. I find the ordering of Color and Texture opcodes strange.

9: 0x28 (() Open_Segment (?Include Library/24449)
10: 0x71 (q) Tag [0]
11: 0x55 (U) User_Options
12: 0x28 (() Open_Segment (?Include Library/24450)
13: 0x71 (q) Tag [1]
14: 0x55 (U) User_Options
15: 0x22 (") Color
16: 0x74 (t) Texture
17: 0x22 (") Color
18: 0x53 (S) Shell
19: 0x29 ()) Close_Segment
20: 0x29 ()) Close_Segment

I don't understand what it means for a Shell to have two colors and a texture (or even a single color and a single texture), if there's no way to determine where each of these three are to be applied, since to my understandings these are to be laid on top of the WHOLE Shell, which doesn't make sense. What does the above sequence mean in terms of rendering operations?

Thanks in advance
*Scott Sheppard - Autodesk
Message 2 of 3 (165 Views)

Re: Confusing OpCodes?!

11-19-2007 07:19 AM in reply to: TheUnknown
The second one wins. HOOPS is a declarative paradigm. The attributes can be
set in any order. They get applied when Update_Display or something similar
is encountered.

wrote in message news:5780750@discussion.autodesk.com...
Hello all,

Today, I encountered the following sequence of opcodes generated by the
toolkit. I find the ordering of Color and Texture opcodes strange.

9: 0x28 (() Open_Segment (?Include Library/24449)
10: 0x71 (q) Tag [0]
11: 0x55 (U) User_Options
12: 0x28 (() Open_Segment (?Include Library/24450)
13: 0x71 (q) Tag [1]
14: 0x55 (U) User_Options
15: 0x22 (") Color
16: 0x74 (t) Texture
17: 0x22 (") Color
18: 0x53 (S) Shell
19: 0x29 ()) Close_Segment
20: 0x29 ()) Close_Segment

I don't understand what it means for a Shell to have two colors and a
texture (or even a single color and a single texture), if there's no way to
determine where each of these three are to be applied, since to my
understandings these are to be laid on top of the WHOLE Shell, which doesn't
make sense. What does the above sequence mean in terms of rendering
operations?

Thanks in advance
Contributor
TheUnknown
Posts: 20
Registered: ‎08-04-2006
Message 3 of 3 (165 Views)

Re: Confusing OpCodes?!

11-21-2007 11:30 AM in reply to: TheUnknown
Thanks Scott.

Does DWF files support the concept of two-sided materials? Two sided materials allow faces to have different materials applied to each side, so we can have a texture in one side and a color in the other side of a single face, or we can have a face with two different textures applied to each side of it.

Thanks a lot.
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.