Community
DWF
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Confusing OpCodes?!

2 REPLIES 2
Reply
Message 1 of 3
TheUnknown
405 Views, 2 Replies

Confusing OpCodes?!

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
2 REPLIES 2
Message 2 of 3
Anonymous
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
Message 3 of 3
TheUnknown
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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

”Boost

 

”Tips

 

”Services