Skip to content
Forum Archive

Raytraced Perception

12 posts

Raz#

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#
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#
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 😛 😉
ryan#
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#
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#
That is very weird looking code. For example,
a=max(max(x1,y1),max(max(x1,y1),z1));

At least optimize that some.😛 Something like;
a=max(x1,y1);
a=max(a,z1);
That's much nicer.😛

Looks a lot like UnConeD's preset. Needs some alpha blending and a nice texture.
Raz#
There, done some optimisations and added a not so great texture. Also made the camera position a separate variable.
Jaak#
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.

👎 THERE IS SOME SIMPLE RAYTRACED DM-S FOR EVERYBODY
The *raytraced tunnel dm 3* mapping is WRONG maybe somebody could help me
shreyas_potnis#
so if you are not doing it, then maybe I will do it for you 😉
aspect ratio problem fixed