Raz
31st March 2003 21:14 UTC
Raytraced Perception
I took my old perception DM and did a little work into DM's and just finished my first decent raytraced DM. I've basically coded an intersection. Don't mind the shite texture that can easily be changed. It's hardly a finished preset but i was bored and i'd just finished it so i thought i'd make a thread about it. Hows about some tips on how to go into the foggy areas, hint hint UnConeD. ANything just comments whatever. I was bored so here it is.
Pixelcraft
31st March 2003 22:08 UTC
It looks like UnConeD's "Painful Bathroom tiles" preset. Since I'm still kind of a n00b, I'll leave this to the professionals;)
shreyas_potnis
1st April 2003 06:30 UTC
shit, remove all the sin's and cos's from per point and put them in per frame, it wont matter if u use 6 more variables.
and aspect ratio? sounds unconed like :p ;)
ryan
1st April 2003 08:35 UTC
I like it Raz, Maybe needs some color. And the corners look kinda staticy. Otherwise looks nice. I've been reading through avs primer. Hopefull I will be able to do some 3d stuff sooner or later.
AVS Axer
1st April 2003 09:57 UTC
Very very bizzare method yu got there. Very unconventional.
It doesn't look asthough you've worked by the traditional ray-tracing method, nice, its quite clever.
You should be working on camera movement aswell. Youre code, as it stands now, does not allow for camera movement at all, just rotation. (instead of using a variable, such as ox,oy,oz, for the origin position, you have used nothing, so the camera is always at 0,0,0. To fix this, you would, unfortunately, have to messy-up what is currently a very *clean* code. )
Also, i cant think how you would sync this code to a scope, but hey, im sure it can be done if you really set your mind on in.
Oh, yeah, fix up that aspect ratio before ucd cracks a hissyfit.
Where is that old badger? I havnt seem him around for a while...
anubis2003
1st April 2003 12:31 UTC
That is very weird looking code. For example,
a=max(max(x1,y1),max(max(x1,y1),z1));
At least optimize that some.:p Something like;
a=max(x1,y1);
a=max(a,z1);
That's much nicer.:p
Looks a lot like UnConeD's preset. Needs some alpha blending and a nice texture.
Raz
1st April 2003 16:28 UTC
There, done some optimisations and added a not so great texture. Also made the camera position a separate variable.
Jaak
1st April 2003 18:09 UTC
x1=abs(-1/yyy); what do you do
y1=abs(-1/xxx); with that *-* if
z1=abs(-1/zzz); there is abs func.
yyy=y*cx-1*sx;
xxx=x*cy-(y*sx+1*cx)*sy;
zzz=x*sy+(y*sx+1*cx)*cy;
the alphablending can be done with alpha=atan2(10/(x1+y1+z1),a); it a bit shorter
You'r coding looks weeeerd to me (no offence, thats only my opinion)
Anyways, nice presets... needs little more work.
:down: THERE IS SOME SIMPLE RAYTRACED DM-S FOR EVERYBODY
The *raytraced tunnel dm 3* mapping is WRONG maybe somebody could help me
Phaze1987
1st April 2003 20:46 UTC
i hate you jaak ! :D
Raz : nice preset :)
hungryskull
2nd April 2003 02:14 UTC
Nice preset! No offence but I have never seen a DM like that before.
anubis2003
2nd April 2003 02:30 UTC
Download UnConeD's Painful Bathroom Tiles. It's similar, but it's blocks move some.
shreyas_potnis
2nd April 2003 07:06 UTC
so if you are not doing it, then maybe I will do it for you ;)
aspect ratio problem fixed