Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Quad), 755 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Dynamic Normalmaps? #37522
12/09/04 11:58
12/09/04 11:58
Joined: May 2002
Posts: 757
NY, USA
GhostDude Offline OP
Developer
GhostDude  Offline OP
Developer

Joined: May 2002
Posts: 757
NY, USA
Newbie question time...

Is it possible to define a bmap, draw to it during the game using pixel_to_bmap, convert it to a normalmap, and then use it in a dot3 bump mapping material effect? I have tried doing this, but the changes to the bmap dont seem to have any effect. Im really interested in getting this to work, because you could then simulate carving out a surface, or something like that. However, I really dont know a lot about shaders, and so I am really hoping that this can be done with material effects and not pixel or vertex shaders (I'm not sure what my graphics card supports.)

Is it possible to convert a bmap to a normalmap, and then draw to it? I tried this, but i didnt get the results i wanted. It seems like that might be the answer to my problem though, if it is even possible.

Also, since im already on the subject, what exactly is the difference between "material effects" and shaders? I understand the basic idea behind shaders interrupting the graphics pipeline (i hope thats right ) but i dont see how that is different from a material effect.


Lead Programmer of Realspawn Productions AIM: gh0s7mp630 MSN: [Email]"mpratt630@hotmail.com"[/Email]
Re: Dynamic Normalmaps? [Re: GhostDude] #37523
12/09/04 16:10
12/09/04 16:10
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
Quote:

Is it possible to define a bmap, draw to it during the game using pixel_to_bmap, convert it to a normalmap, and then use it in a dot3 bump mapping material effect?



It should be. But i imagine it would be very slooow.

Quote:

Is it possible to convert a bmap to a normalmap, and then draw to it?



no it's not. At least, you cant draw to it and preserve the normals data.

Quote:

what exactly is the difference between "material effects" and shaders?



material effects can use either the fixed-function pipeline or vertex and pixel shaders. Shaders are just the programmable part of the material effect.. you can have a material without any shaders, but you can't have shaders without a material.

Re: Dynamic Normalmaps? [Re: Matt_Aufderheide] #37524
12/12/04 08:28
12/12/04 08:28
Joined: Oct 2003
Posts: 151
Watseka, Illinois
M3PHiSTOPH3L3S Offline
Member
M3PHiSTOPH3L3S  Offline
Member

Joined: Oct 2003
Posts: 151
Watseka, Illinois
I have seen source code in Render Monkey for a shader that generates DOT3 maps from heightmaps if I remember correctly. I'm not sure how much this helps you, but I'm pretty sure with some work this could accomplish what you want.

M3PHiSTO


"you give me the reason, you give me control, i gave you my purity, my purity you stole, did you think i wouldn't recognize this compromise? am i just too stupid to realize?" - Trent Reznor (NiN) Yahoo Messager ID: SHATT3R3DFA1TH

Moderated by  Blink, Hummel, Superku 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1