3 registered members (Ayumi, Akow, AndrewAMD),
1,505
guests, and 9
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: [Sphere] Sphere 2 - Error after update to A6.5
[Re: Matt_Aufderheide]
#92529
11/10/06 08:14
11/10/06 08:14
|
Joined: Aug 2001
Posts: 2,320 Alberta, Canada
William
Expert
|
Expert
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
|
To solve the light issue under 5.2 change the code like so - Code:
function Light_Update() { var temp2loop=0; //loop through and update each active light in the array while(temp2loop<max_sphere_lights) { temp=closestlight[temp2loop]; if(temp>0) { me=ptr_for_handle(closestlight[temp2loop]); if my.skill5<=max_light_dist { Sp_Init_Light(vector(my.x,my.z,my.y),vector(my.skill8,my.skill9,my.skill10),vector(temp2loop,temp2loop,my.Sp_lightrange*2)); Sp_Light_Dist(my.skill5+20,temp2loop); } //if light is nt within mac dist, make it black and very far away so there can be no popping artifacts if(my.skill5>max_light_dist) { Sp_Init_Light(vector(10000,10000,10000),vector(0,0,0),vector(temp2loop,temp2loop,my.Sp_lightrange)); Sp_Light_Dist(my.skill5+20,temp2loop); } } else { if(my) { Sp_Init_Light(vector(10000,10000,10000),vector(0,0,0),vector(temp2loop,temp2loop,my.Sp_lightrange)); //--- line that produces pointer error Sp_Light_Dist(my.skill5+20,temp2loop); } } temp2loop+=1; } } Matt, excellent job with this release, having tested and messed around with the code some, just a great job all around. Both the indoor and outdoor scenes work great, and the water is some of the best(if not the best) i've ever seen in a game. I was wondering about the trees though, how do you make them sway? I cant seem to find what causes it past the plant_wave() function. As well, I couldn't figure out how to add them in a custom level, how is the bmap loaded that places them? Thanks.
|
|
|
Re: [Sphere] Sphere 2 - Error after update to A6.5
[Re: William]
#92530
11/10/06 18:43
11/10/06 18:43
|
Joined: Apr 2006
Posts: 1,551 Netherlands
D3D
Serious User
|
Serious User
Joined: Apr 2006
Posts: 1,551
Netherlands
|
@ William, Thank you for sharing the updated code to solve this empty pointer error. Sphere2 now works with the A6.50.2 update! Dusty
|
|
|
Re: [Sphere] Sphere 2 - Error after update to A6.5
[Re: William]
#92532
11/17/06 13:13
11/17/06 13:13
|
Joined: Jul 2005
Posts: 109 Cyrpus
Aram
Member
|
Member
Joined: Jul 2005
Posts: 109
Cyrpus
|
Thanks for figuring that out William.
I'll make the changes.
Regards,
Last edited by Aram; 11/17/06 13:14.
GeForce 7800 GT (256 MB DDR3)
3DGS A6 Commercial.
DJ Aram
|
|
|
Still not working
[Re: Aram]
#92534
12/10/06 00:21
12/10/06 00:21
|
Joined: Jun 2005
Posts: 656
Grafton
User
|
User
Joined: Jun 2005
Posts: 656
|
Matt, I inserted the pointer check into the Light_Update() function as William shows, and the level does load without complaint. However the "monster" is totally unlit. It is as if the closest light array is empty? Maybe a problem in Light_Distance()? Any ideas?
Not two, not one.
|
|
|
Re: Still not working
[Re: Grafton]
#92535
12/14/06 07:28
12/14/06 07:28
|
Joined: May 2005
Posts: 819 U.S.
Why_Do_I_Die
Warned
|
Warned
Joined: May 2005
Posts: 819
U.S.
|
So , after all this time , what would you people say is the min requirements for a user playing a game made with sphere , with quality settings set to midium or something , I only have extra edition , and still thinking about updating to commercial to try sphere , but I do only have a Feforce fx ultra 5200 , so Im still thinking about it before doing it , any info on speed would be great , specially for indoor levels , dont care much for the outdoor.
|
|
|
Re: [Sphere] Sphere 2 Released
[Re: D3D]
#92537
12/28/06 10:07
12/28/06 10:07
|
Joined: Sep 2003
Posts: 265 Coupeville,Wa,USA
Yu_Une
Member
|
Member
Joined: Sep 2003
Posts: 265
Coupeville,Wa,USA
|
@ Dusty, that's not entirely true, I got a Nvidia card from Krex for under $100.00 (but it's an APG), but for the PCIE cards you shelling some money but PCIE is still fairly new tech . @ Matt Aufderheide my email has resonantly changed, would that present a problem?
Last edited by Yu_Une; 12/28/06 10:11.
Windows Vista Ultimate AMD Phonomn III X2 Biostar T series TA790GX A3+ AMD Radeon HD 4830 in SLI mode 8Gb DDR2 ram
3D Game Studio Commercial upgrade Edition 6.60
Never give up on your dreams.
|
|
|
|