Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK .NET / Cannot Set Light to SpotLight

Author
Message
DrkTemplar
10
Years of Service
User Offline
Joined: 18th Aug 2011
Location:
Posted: 21st Aug 2012 03:43
Using the below code, and I can see in debugger the Type is still Point.



Is this broken?
vapor
13
Years of Service
User Offline
Joined: 27th May 2009
Location:
Posted: 21st Aug 2012 20:12
Interesting...

var t = LightSource.Type.ToString(); -- does return point

---
If you look at the actual DarkGDK wrapper code, you will find that the implementation for SetSpotLight, SetPointLight, and SetDirectionalLight vary by one detail...



Why does the signature of SetSpotLight have a parameter of 0 instead of this.Id? Clearly the expected argument to AdditionalLight is expecting the ID...

APEXnow
Retired Moderator
19
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 5th Sep 2012 11:28
Well spotted. No pun intended.

If you need any changes made to the classes to improve overall stability, please feel free to email me any change requests so that I can finally have a good list of bugs/issues.

Paul.

Login to post a reply

Server time is: 2022-08-07 17:53:45
Your offset time is: 2022-08-07 17:53:45