Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Programming (https://simplymaya.com/forum/forumdisplay.php?f=32)
-   -   WIP: My Raytracer (https://simplymaya.com/forum/showthread.php?t=20118)

MattTheMan 27-02-2006 11:56 PM

thanks guys

i traced through my program and found that my sphere collision code never brings up a miss, so I have to erwrite it

(how its worked so far I dont know, but it became obvious when writing my sphere reflection code, which i havent finished)

but I dont have time to work on during the weekdays, so ill update this weekend

thanks
Matt :alien:

t1ck135 28-02-2006 11:49 AM

nice work MattTheMan
stuff like this really interests me but I never get the time to do anything. I started writing a 3D vector calculating system in actionscript2 (flash) but then started learning maya and that took all my time up.

Keep going at it and if you have any website links to the theory of how to write the equations/calculations then post them up. Not saying I'll be able to understand any of it though...

junkyBob 01-03-2006 05:44 AM

Hmm.
I wonder if the algrithims you are using could be applied to shockwave? That would be awsome considering that shockwave still does not support shadows or any sorts of raytracing at all.

Maybe we 2 could put our brains together by you coming up with the calculations, and I do the scripting langauge in Director and sell it as a library script where we would split the profits. Hehe :D

gster123 01-03-2006 10:54 PM

Programming does that to ya man, it works for so long then you add somthing no where near related to what your working on it and if F***s up.

Your doing mint dude keep it up!

MattTheMan 01-03-2006 11:59 PM

http://www.flipcode.com/articles/art...ytrace01.shtml

excellent site, but I dont use their code or anything, I use a completely diff. method- and I wont be using a photon mapper, ill b using monte carlo GI-

plus most of the algorithms that I use arent up ther.

heres a cool sphere-ray collision site:

http://www.ccs.neu.edu/home/fell/CSU...ngFormulas.htm

GREAT overview here:
http://www.siggraph.org/education/ma...ce/rtrace1.htm

and as for code porting-

of couse it can be done in shockwave/whatever. Its math: if shockwave can do +, -, divide, multiply, it can do raytracing.

its the combination of +, -, \, * that counts.

Of course, in C++ its nice, you can write your own operators:

i have ones that make it so when adding vectors for instance:

instead of

new.x = v.x + w.x;
new.y = v.y + w.y;
new.z = v.z + w.z;

i do

vector3d new = v + w;

Also, in shockwave, i dont think u can do that, you wuill have to have spereate variables for

vx, vy, vz, wx, wy, wz, newx, newy, newz

which getts really, really annoying+confusing.

then again, raytracing over all is really, really annoying+confusing.

raytracing has a fault though- it is painfully slow. A scene with 20 objects, with a screen of 800x600 has 9,600,000 intersection tests.

Then lets say a ground plane is reflective, which means half of those rays hit the plane, and each reflected ray is tested against each object: 14,000,000 intersection tests. ouch.


but thanx for the nice wurds peeps, I appreciate it.

l8er,
Matt :alien:

moldy530 02-03-2006 12:35 AM

Man i respect what ur doin and all, but ur 13 (i think) you need other focuses right now. *cough* SOCIAL LIFE *cough*

No offense to anyone that does this (well not the ones that are good at this at least. If your as bad as i am give up its not worth the work.) You are all prob gonna make a lot of money off of this, but still you got to live life to love life.

MattTheMan 03-03-2006 12:57 AM

i do this on sunday nights- and what the f** can you do on a sunday night?
I go out with friends/gf on fridays and saturday nights, and I can do these things like... on sunday and sturday mid day and stuf

so go shoot yourself moldy (kidding :p)

cya later
matt :alien:

darijo203 04-03-2006 04:33 PM

I uset to hang out all the time but now...I'm sick of it, waste of money and quality time.

I go out maybe 2 times in 3 monthes, rest od the days I spend playing football, go somewhere in nature for a day or two with my friends...


Keep going...you cant go wrong when learning programming, it will give you more solutions!

moldy530 04-03-2006 05:26 PM

Ya u cud go with programming but what about doctors, they too make a lot of money and u dont have to worry bout ur training untill ur 18

this leaving u more time to be a kid when ur younger

Matt btw i was jk up top. This ^ is an arguement with the last guys reply

MattTheMan 04-03-2006 05:56 PM

well im openin both options- doctor and programmer. And for programmers dont have to do this crap till like... sophomore college year, so I just like to do this and I luv 3d so... i couldnt resist. It was either this or a 3d modeling prog called Angel3d Written in OpenGl.

Tim_LIVID 04-03-2006 06:57 PM

2 or 3 time a month!

Sheesh man that's not healthy, World Cups on soon, every England lad should be down their local. :D

:beer:

darijo203 04-03-2006 08:15 PM

Quote:

Originally posted by Tim_LIVID
2 or 3 time a month!

Sheesh man that's not healthy, World Cups on soon, every England lad should be down their local. :D

:beer:

I didn said 2-3 time a month but 2-3 times in 3 months.

Thats once per month...

Dont worry I got friends but we dont hang out in clubs no more.

Andy yes we will go to germany in summer on WC to support our flag.

Tim_LIVID 04-03-2006 09:35 PM

Each to their own.

Good luck in the Cup by the way, less than 100 days to go now.

darijo203 05-03-2006 01:07 PM

Yeah, but we got tickets for only one game damn it!

But never mind we'll stay as long as our team does.

In France 98 we won the 3rd place, this year we'll go for a gold! LOL

We'll be probably back by train after 3 days drunk as...aveee German beer!

Go programming!

Tim_LIVID 06-03-2006 10:14 AM

You can't beat a good ol pint of real English Ale though.


All times are GMT. The time now is 04:28 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018