Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Corrected Plain Function

Author
Message
Lost in Thought
21
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 2nd Oct 2005 03:46
Here is a function to make a plain with correct UV and normal data since DBP's uv's are mirrored and it's normals inverted. You cannot tell because by default plains are yrotated to 180 and their culling is turned off. You are actually looking at the back of the plain be default. And you cannot turn on culling to gain speed for them or they will look odd.



spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 3rd Oct 2005 00:22
You can also use the new 5.8 vertex commands.



These fixes also fix the bad bug of playing animations to images that you texture plains with. They now play correct way round - they were reversed before.

Boo!
Lost in Thought
21
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 7th Oct 2005 12:54
This is no longer needed in 5.9 Use:

make object plain sizex#, sizey#, 1

The ,1 flag makes it produce the same plain as my code

spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 7th Oct 2005 13:50
I saw that.

Let's take bets as to whether that extra flag is included in the help files!

Boo!
Lost in Thought
21
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 8th Oct 2005 06:39
I will add it to the online help files when they come back up. I'm betting no for the DBP help files. I wonder why cubes share verts with the new vertex manip commands but plains do not?

Login to post a reply

Server time is: 2025-05-16 19:14:30
Your offset time is: 2025-05-16 19:14:30