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
0 registered members (), 744 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
Rating: 5
Page 2 of 5 1 2 3 4 5
Re: New beta's "material mtl_envcube" reflection shade [Re: ventilator] #19382
11/06/03 10:52
11/06/03 10:52
Joined: Jul 2002
Posts: 2,813
U.S.
Nadester Offline

Expert
Nadester  Offline

Expert

Joined: Jul 2002
Posts: 2,813
U.S.
I see... I'll give it a wing. (btw, is that how all enviromental mapping is done, or is this just faking it? I always thought that enviromental mapping was actually reflective) Thanx!


--Eric
Re: New beta's "material mtl_envcube" reflection shade [Re: Nadester] #19383
11/06/03 10:56
11/06/03 10:56
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
this is how all cubic environment mapping is done but cubic environment mapping is a fake! i think you can only get real reflections with raytracing which is still to slow for realtime rendering...

Re: New beta's "material mtl_envcube" reflection shade [Re: ventilator] #19384
11/06/03 11:13
11/06/03 11:13
Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
Drew Offline OP
Serious User
Drew  Offline OP
Serious User

Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
yes, very true ventilator

if possible a script or tool to make skycubes would be EXCELLENT...



Drew Medina
Game Developer (Artist)
Personal & professional website
Deviant Art
My Blogspot
Re: New beta's "material mtl_envcube" reflection shade [Re: Drew] #19385
11/06/03 12:07
11/06/03 12:07
Joined: Jul 2002
Posts: 2,813
U.S.
Nadester Offline

Expert
Nadester  Offline

Expert

Joined: Jul 2002
Posts: 2,813
U.S.
Wow that is a gorgious effect! I applied it to my sword for bbr (just the blade part) and it looks amazing! Nice work


--Eric
Re: New beta's "material mtl_envcube" reflection shade [Re: Nadester] #19386
11/06/03 12:50
11/06/03 12:50
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
ok, here is the rendercube script:

Code:
var cuberesolution=256; // set up the resolution of the cube here

var cubeposition[3]=0,0,200; // set up the position of the cube here
var west[3]=180,0,0;
var north[3]=90,0,0;
var east[3]=0,0,0;
var south[3]=-90,0,0;
var down[3]=90,-90,0;
var up[3]=90,90,0;

function rendercube()
{
video_set(cuberesolution,cuberesolution,32,0);
camera.arc=90;
vec_set(camera.x,cubeposition);
vec_set(camera.pan,west);
wait(1);
_sshot();
vec_set(camera.x,cubeposition);
vec_set(camera.pan,north);
wait(1);
_sshot();
vec_set(camera.x,cubeposition);
vec_set(camera.pan,east);
wait(1);
_sshot();
vec_set(camera.x,cubeposition);
vec_set(camera.pan,south);
wait(1);
_sshot();
vec_set(camera.x,cubeposition);
vec_set(camera.pan,down);
wait(1);
_sshot();
vec_set(camera.x,cubeposition);
vec_set(camera.pan,up);
wait(1);
_sshot();
}
on_r=rendercube;

i am not 100% sure if all directions are set up correctly. the beta watermarks are a bit annoying and unfortunately the video_set command isn't available in the non-beta version.

if you press r, 6 screenshots will be generated. nothing should move in your level while rendering the cube because there is a wait after rendering each side. copy all screenshots next to each other (in the order 0-1-2-3-4-5) into a new image in your image editing program and save it as <yourcubename+6.tga>.

(if you use this cube for a sky you shouldn't use a z offset in the sky definition because this will lead to distortions.)

Re: New beta's "material mtl_envcube" reflection shade [Re: ventilator] #19387
11/06/03 14:13
11/06/03 14:13
Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
Drew Offline OP
Serious User
Drew  Offline OP
Serious User

Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
nice, I'm about to pounce on it! thanks!
is there a similar technique for skybox textures?


Drew Medina
Game Developer (Artist)
Personal & professional website
Deviant Art
My Blogspot
Re: New beta's "material mtl_envcube" reflection shade [Re: Drew] #19388
11/06/03 15:30
11/06/03 15:30
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
Quote:

is there a similar technique for skybox textures?


i am not sure what you mean? you can also use the cube rendered from the engine as sky if you want!

btw. you will achieve better quality if you render the cube sides with the size 512 and scale them down in your image editing application then...

Re: New beta's "material mtl_envcube" reflection shade [Re: ventilator] #19389
11/06/03 16:21
11/06/03 16:21
Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
Drew Offline OP
Serious User
Drew  Offline OP
Serious User

Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
Great script, worked perfectly just as you said...for both environment mapping and skycube...

Its amazing how much better they look, here's a screenshot:
(left rock is 50% reflection)




Drew Medina
Game Developer (Artist)
Personal & professional website
Deviant Art
My Blogspot
Re: New beta's "material mtl_envcube" reflection shade [Re: Drew] #19390
11/06/03 16:39
11/06/03 16:39
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
looks great! what is this? an alien planet populated by zombies?

Re: New beta's "material mtl_envcube" reflection shade [Re: ventilator] #19391
11/06/03 16:46
11/06/03 16:46
Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
Drew Offline OP
Serious User
Drew  Offline OP
Serious User

Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
lol... why yes it is. Those zombies keep popping up everywhere



Drew Medina
Game Developer (Artist)
Personal & professional website
Deviant Art
My Blogspot
Page 2 of 5 1 2 3 4 5

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