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.

DarkBASIC Professional Discussion / We can not edit the normals of ADVANCED TERRAIN?

Author
Message
Edson
15
Years of Service
User Offline
Joined: 21st Dec 2010
Location: Brasil
Posted: 5th Feb 2013 19:55
I can not edit the normals of land created by ADVANCED TERRAIN.
Use Vertexdata without any problem, my only problem is with the objects created by ADVANCED TERRAIN.
I can edit uv, position. But I can not edit normal!

Thank you all

My project is Phenadlax!!!
Edson
15
Years of Service
User Offline
Joined: 21st Dec 2010
Location: Brasil
Posted: 5th Feb 2013 19:57
Can someone help me?

My project is Phenadlax!!!
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 5th Feb 2013 20:10 Edited at: 5th Feb 2013 20:11
Does SET OBJECT NORMALS not help?

EDIT

Also, be patient... 2 minutes it not a viable response time on a forum you know

Edson
15
Years of Service
User Offline
Joined: 21st Dec 2010
Location: Brasil
Posted: 5th Feb 2013 20:14
The comand SET OBJECT NORMALS does not work... And this command requires a lot of video memory...

I need a form of make normals from vertexdata, because i need modify this.

Thank you.

My project is Phenadlax!!!
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 5th Feb 2013 20:16
I cannot help with Vertexes at present, but as a precursor... perhaps post the code you are using if you are willing to and see if the next person to drop by can help sooner that way

Edson
15
Years of Service
User Offline
Joined: 21st Dec 2010
Location: Brasil
Posted: 5th Feb 2013 20:19
I'm patient, writing that looks bad.

Sorry writing, and errors. I do not speak English, I'm from Brazil.

Sorry

My project is Phenadlax!!!
Edson
15
Years of Service
User Offline
Joined: 21st Dec 2010
Location: Brasil
Posted: 5th Feb 2013 20:21 Edited at: 5th Feb 2013 20:28
OK, this is code of a exemple:



OK, thank you!

I make clones of this terrain for test, but the object inherits informations.

My project is Phenadlax!!!
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 5th Feb 2013 20:21 Edited at: 5th Feb 2013 20:23
Not to worry, we all make mistakes every now and then...

You do know how to post code snippets correct?

EDIT

You posted that while I was writing this lol, also try not to double post, go to your previous/last post if nobody has posted after you and click the Edit Post button...

Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 5th Feb 2013 20:25
advanced terrain objects don't contain normals. You'll have to add them using convert object fvf format

Edson
15
Years of Service
User Offline
Joined: 21st Dec 2010
Location: Brasil
Posted: 5th Feb 2013 20:31
"advanced terrain objects don't contain normals. You'll have to add them using convert object fvf format"

I do this, in my exemple i use fvf format, but problem not solve...

My project is Phenadlax!!!
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 5th Feb 2013 20:40
I don't have advanced terrain, but can you confirm that it's not actually accepting the normals? Perhaps just read them again and confirm they are actually being set:



I'm not sure, but I've never seen a terrain set up with fvf 0x12. Try the standard one:



TheComet

http://blankflankstudios.tumblr.com/
"ZIP files are such a retarded format!" - Phaelax
Edson
15
Years of Service
User Offline
Joined: 21st Dec 2010
Location: Brasil
Posted: 5th Feb 2013 20:51 Edited at: 5th Feb 2013 21:12
TheComet thanks,

I compile with fvf 0x12 and result do not modify ...

I see that problem are in advanced terrain, because in screen with your code prints correct values.



I'm using 0.1 by convention. But actually 1.0 or any other value does not alter the normal original ground ...

My project is Phenadlax!!!
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 5th Feb 2013 20:59
You are using 0.1 instead of 1.0 for the Y axis...

Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 5th Feb 2013 21:05
Quote: "You are using 0.1 instead of 1.0 for the Y axis..."


It shouldn't make a difference, should it? After all, the normals are just for directional lighting information, and {0.0, 0.1, 0.0} is the same direction as {0.0, 1.0, 0.0}.

TheComet

http://blankflankstudios.tumblr.com/
"ZIP files are such a retarded format!" - Phaelax

Login to post a reply

Server time is: 2026-07-07 00:31:42
Your offset time is: 2026-07-07 00:31:42