2 registered members (OptimusPrime, AndrewAMD),
14,580
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Save Edited Bitmap?
#101317
12/06/06 22:21
12/06/06 22:21
|
Joined: Nov 2006
Posts: 141 South Africa
quasarchangel
OP
Member
|
OP
Member
Joined: Nov 2006
Posts: 141
South Africa
|
Can someone please tell me how I can save a bitmap file after editing it with the pixel_to_bmap function?
Don't tell me it's impossible. If it is, how can I use the edited bitmap as a texture for an effect after it has been edited? Is it supposed to work?
Thanks in advance.
God DID give us a manual on how to change this world...
|
|
|
Re: Save Edited Bitmap?
[Re: Matt_Aufderheide]
#101321
12/07/06 06:13
12/07/06 06:13
|
Joined: Nov 2006
Posts: 141 South Africa
quasarchangel
OP
Member
|
OP
Member
Joined: Nov 2006
Posts: 141
South Africa
|
There is no difference on my terrain, where I use it as a blendmap, I'll check it again, but I've even added a wait between the edit and then it starts applying the material a few frames after it has been edited
God DID give us a manual on how to change this world...
|
|
|
Re: Save Edited Bitmap?
[Re: ventilator]
#101323
12/07/06 07:15
12/07/06 07:15
|
Joined: Nov 2006
Posts: 141 South Africa
quasarchangel
OP
Member
|
OP
Member
Joined: Nov 2006
Posts: 141
South Africa
|
Could you give me a tutorial or example script to do it without saving, I just want to compare it with my own. Otherwise I'll see if I can incorporate that tga writing script. Thanks for the replys.
God DID give us a manual on how to change this world...
|
|
|
Re: Save Edited Bitmap?
[Re: Matt_Aufderheide]
#101325
12/07/06 08:34
12/07/06 08:34
|
Joined: Nov 2006
Posts: 141 South Africa
quasarchangel
OP
Member
|
OP
Member
Joined: Nov 2006
Posts: 141
South Africa
|
Yes, Heres a piece of my code:
format = bmap_lock(blendmaph,0); y=0; x=0; while(y<40) { while(x<40) { temp=(heightmap[((x)*400)+y]/255)*100; pixel = pixel_for_vec(vector(temp,temp,temp),100,format); pixel_to_bmap(blendmaph,x,y,pixel); x+=1; } x=0; y+=1; } bmap_unlock(blendmaph);
This is run just before applying the material effect to my terrain. The blendmap is a tga file. I have checked that it actually works by setting the bmap up as a panel and it does what I want it to do, but there is no difference as blendmap in effect.
God DID give us a manual on how to change this world...
|
|
|
|