Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   3D Script (https://forums.graalonline.com/forums/showthread.php?t=51990)

amonrabr 03-28-2004 09:11 AM

3D Script
 
1 Attachment(s)
I would like to post a 3D script Im working on.. Its good to see the nice effects of "log" and other maths that people usually dont use in the trigonometry. Im long time studying trigonometry, I hope you like it.

Run the script and press "H" to open the command list.


Thanks

Amon-Ra

URBANLEGEND 03-28-2004 09:26 AM

That sir, ****ing rox. I never though graal was capable of such things. this will deafinitly break a barier or two

Python523 03-28-2004 10:03 AM

sen x? o.O portugese translation of another trig function? (sec or so?)

Kaimetsu 03-28-2004 10:23 AM

Quote:

Originally posted by URBANLEGEND
That sir, ****ing rox. I never though graal was capable of such things. this will deafinitly break a barier or two
I don't mean to downplay Amon-Ra's accomplishments, but that barrier was broken a long time ago.

WanDaMan 03-28-2004 12:11 PM

Quote:

Originally posted by Kaimetsu


I don't mean to downplay Amon-Ra's accomplishments, but that barrier was broken a long time ago.

Yes it was, by you and AmonBr... Didn't you make another one like ages ago? (amon?)

Spark910 03-28-2004 12:56 PM

Quote:

Originally posted by Kaimetsu


I don't mean to downplay Amon-Ra's accomplishments, but that barrier was broken a long time ago.

Yeah, I remember one of your 3D light like things of a player in a tube or so.

Kaimetsu 03-28-2004 01:02 PM

Quote:

Originally posted by WanDaMan
Yes it was, by you and AmonBr... Didn't you make another one like ages ago? (amon?)
He did indeed, yes. I believe that made him the second of many (Dach and Hell Raven also made 3D engines, I think).

Quote:

Originally posted by Spark910
Yeah, I remember one of your 3D light like things of a player in a tube or so.
The original sphere, presumably. It was nice for its time, but showpoly paved the way for my newer superphat polygonal version ^_^

amonrabr 03-28-2004 02:55 PM

Quote:

Originally posted by URBANLEGEND
That sir, ****ing rox. I never though graal was capable of such things. this will deafinitly break a barier or two
thanks ^^ Im happy you liked

Quote:

sen x? o.O portugese translation of another trig function? (sec or so?)
"Sêno".. is "sinus" in portuguese.. sorry I forgot to change, I wouldnt post the script.. just changed my mind later

Quote:

Yes it was, by you and AmonBr... Didn't you make another one like ages ago? (amon?)
yes, I made that cube


Thanks everybody liked it, sorry for the Portuguese comments..

osrs 03-28-2004 02:58 PM

Nifty. :D

GoZelda 03-28-2004 03:17 PM

Really nice :D
But Kaimetsu's 3d thing was cool, too.

Kaimetsu 03-28-2004 03:41 PM

Out of curiosity, have you considered the possible problems in using shaded polygons instead of wireframes? It's quite an interesting puzzle to solve :)

amonrabr 03-28-2004 05:27 PM

Quote:

Originally posted by Kaimetsu
Out of curiosity, have you considered the possible problems in using shaded polygons instead of wireframes? It's quite an interesting puzzle to solve :)
The main reason I made this script is to show R² -> R functions to learn and make my own functions.. So, shaded polygons are fast and better to see the results... I made the whole script to be fast, couse my computer isnt all that good, thats why It doesnt draw in loop like the sphere.. It just draw when you change a variable.. Also to draw this way, probably you saw in the script.. I just give the initial and final position of each line.. so Its pretty easy to draw it with triangles or squares just adding some script lines. I made the wrost and difficult way, but It gives the best "show functions" result.. I think..

VeX_RaT_Boy 03-28-2004 05:42 PM

It looks very nice! ;D

TB3 03-28-2004 06:02 PM

Wow that is realy cool I like yours and kaimetsu's sphere they both demonstrate 3d abbilities very well
I'm just playing with it rotating and such now its just neat O_O and mesmorizing wheeeeeee wow what a long script filled with portugese characters that I would hate to have to learn to type

Great job :)

ZER0_H0UR 03-28-2004 07:37 PM

Wow, that's ****ing amazing. The most amazing thing I've ever seen Graal do.

Dach 03-28-2004 10:51 PM

That's cool, alot like mine though, except with more functions, different setup and control (I didn't use the straightforward x/y/z manipulation, instead it just turns according you your perspective)

Kai meant you are using a wireframe, and if you had tried shaded polygons. More like his sphere, but with differential shading between each node. I was going to add that to mine, but the trig functions lag enough as it is, so the effect isn't worth exponentially increasing the showpoly count x_x.

Kaimetsu 03-29-2004 07:51 AM

Quote:

Originally posted by amonrabr
I made the wrost and difficult way, but It gives the best "show functions" result.. I think..
*nods*

It'd say it's probably the simplest route for what you want, without any unnecessary fanciness. Still, it's fun to think about how other effects would be achieved.

WanDaMan 03-29-2004 02:42 PM

Quote:

Originally posted by Kaimetsu


*nods*

It'd say it's probably the simplest route for what you want, without any unnecessary fanciness. Still, it's fun to think about how other effects would be achieved.

Why don't you add some nifty effects to your modle? :)

Kaimetsu 03-29-2004 04:37 PM

Quote:

Originally posted by WanDaMan

Why don't you add some nifty effects to your modle? :)

If you suggest something then I'll consider it :)

WanDaMan 03-29-2004 04:59 PM

Quote:

Originally posted by Kaimetsu


If you suggest something then I'll consider it :)

I'll think about it :D

Loriel 03-29-2004 05:06 PM

Thanks for letting us know, Wan.

WanDaMan 03-29-2004 05:18 PM

Quote:

Originally posted by Loriel
Thanks for letting us know, Wan.
You seem to like saying that don't you?

Kristi 03-29-2004 08:42 PM

I made a 3d spaceshooting game with lights... and i made a cube... I'm not sure if i made my cube before amonbr

The spaceshooter is fun, but the "3d" engine isnt a realistic rotational one, its different. My cube algorithim as i recall was not as good. I started a 3d bike game, it looks pretty nifty, but as usual im too lazy to finish anything.

I also wrote out an algorithim for a fully rotational graal rubiks cube.

DIABLO2099 03-29-2004 11:32 PM

Quote:

Originally posted by WanDaMan

You seem to like saying that don't you?

*Sees Loriel's invisible hint*, quit while you're ahead.

Polo 04-02-2004 12:23 PM

Quote:

Originally posted by Kaimetsu
Out of curiosity, have you considered the possible problems in using shaded polygons instead of wireframes? It's quite an interesting puzzle to solve :)
The only viable method you can use is to work out the normal to the polygon, and take the angle from a given ray of light falling on it to work out the intensity. I imagine this is what you did. For those that dont know, this is an example of raytracing, but doesn't cast shadows onto other odjects.

Kaimetsu 04-03-2004 07:48 AM

Quote:

Originally posted by Polo
The only viable method you can use is to work out the normal to the polygon, and take the angle from a given ray of light falling on it to work out the intensity. I imagine this is what you did.
Not quite. But the calculation of light intensity isn't the difficult part anyway.


All times are GMT +2. The time now is 07:45 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.