Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   AVS Presets (http://forums.winamp.com/forumdisplay.php?f=137)
-   -   sphere help (http://forums.winamp.com/showthread.php?t=133982)

sidd 2nd May 2003 05:37

sphere help
 
1 Attachment(s)
Can anyone help me with this preset.

the funny circle in the middle is meant to be a 3d sphere, but i cant work out how to texture it properly.

I have tried and tried and failed and searched and seached and failed etc etc.

shreyas_potnis 2nd May 2003 09:30

siddharta, are you avs axer?

and then, are you an Indian? (i think the name is...)

sidd 2nd May 2003 10:43

yes i am, and no im not..
(ohh, confusing)
i am axer, but im not indian.. im very much australian.

siddhartha is originally a tibetan name, no doubt it is used all over the eastern world. It is also a book by Herman Hesse that you all should read, though it has nothing to do with avs.

can anyone help me out with that texturing.. i can think of what it should be, but when i code it it doesnt work.. very frustrating.

sidd 2nd May 2003 12:16

IGNORE THIS WHOLE THREAD!

Problem solved.

i had
ix=dx*k-ox;iy=dy*k-oy;iz=dz*k-oz;
instead of
ix=dx*k+ox;iy=dy*k+oy;iz=dz*k+oz;

unripeLemon 2nd May 2003 15:49

Oh, thanx alot. Now I have this bloody sphere preset to delete. I hope it's a nice preset!

dirkdeftly 4th May 2003 04:54

1: POST THE IMAGE YOU'RE USING
2: that's anything but spherical :igor: have you tried the d=d/sqrt(1-d) formula?

sidd 4th May 2003 05:52

1 Attachment(s)
bloody hell, i said ignore this thread everyone..
1: the image doesnt matter, use any friken image..
2: the sphere code is right, the texturing was wrong. Thats why it looked weird. but its fixed now, dont worry.

but.. just to keep the prols happy, here's some meat.

dirkdeftly 4th May 2003 22:28

i reiterate: that's anything but circular.

sidd 5th May 2003 01:59

post a screen shot, cause its working fine for me.
id like to know if there are any weird glitches on other machines..

is it the grid size thingo, like a sphere with square edges??
if it is, dont get stressed, ill alpha the edges when its done.

dirkdeftly 5th May 2003 03:00

what i'm saying is that shape ISN'T a sphere. how are you calculating it?

UnConeD 5th May 2003 03:40

Atero: it DEFINITELY looks spherical here, aside from the *sp*ct r*t**.

sidd 5th May 2003 08:43

oh.. if there are any weird variables or lines that dont do anything, its cause it started as something different.

but by buhjeebus, does it really matter whether its coded as a sphere if it looks like a sphere? i mean, do people look at a preset and judge it by the code. do they hope that code will jump around the screen to the music? if so, ive been going about this the wrong way all along. Also the aspect ratio thnigamy wasnt fixed when i posted that (i think)

edit/ i looked at mr.Acko's post again and realised that *sp*ct r*t** means aspect ratio.. very cryptic...
:igor:

edit2/ the sphere code specifically was based on unconeds raytracing explaination in a thread here a while back, only slight adjustments have been made to those parts of the code. the camera angle code was from someone elses code (probably his again, but i cant remember) it uses clever atan2 stuff to make the camera always look at a point. (0,0,0) in this case.

dirkdeftly 5th May 2003 19:19

err - sorry, my comp lost that circle preset somewhere, the new version is...

sidd 5th May 2003 23:03

goodo, now lets all just leave this ghastly thread alone.


All times are GMT. The time now is 20:28.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.