![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | No hit results from 3D models with no material in Feb CTP In Dec CTP I was using a 3D sphere with no Material (Material = null) as a trackball for my scene. I have ported the code to Feb CTP and it seems that the sphere is not hit anymore. I just wanted to ask if this is a voluntary change and if it is the intended behaviour in the final version WPF and I should implement another trackball (probably the one from Daniel Lehenbauer). -- Valentin Iliescu [MVP C#] |
| | #2 (permalink) |
| Guest | Re: No hit results from 3D models with no material in Feb CTP Hi! My 3D objects disapeared after upgrading because the UserControl no longer streches its content. So you might assign a material to find out... That is the nice part about your implementation. BTW: Although your implementation is very creative I'd reccomend against it because of performance. Just calculating a Quaternion from two screencoordinates is much faster than doing a hit test. Erno ---- WPF tutorials: http://blogs.infosupport.com/ernow/articles/1878.aspx "viliescu" <viliescu@discussions.microsoft.com> wrote in message news:38440214-4892-4DAB-99B3-E270594B0F16@microsoft.com... > In Dec CTP I was using a 3D sphere with no Material (Material = null) as a > trackball for my scene. I have ported the code to Feb CTP and it seems > that > the sphere is not hit anymore. > I just wanted to ask if this is a voluntary change and if it is the > intended > behaviour in the final version WPF and I should implement another > trackball > (probably the one from Daniel Lehenbauer). > > -- > Valentin Iliescu [MVP C#] |
| | #3 (permalink) |
| Guest | Re: No hit results from 3D models with no material in Feb CTP Thanks Erno, I have tried to add a transparent material and/or set the opacity to 0 but it's not working - the objects from the sphere interior are not visible anymore. -- Valentin Iliescu [MVP C#] "Erno" wrote: > Hi! > > My 3D objects disapeared after upgrading because the UserControl no longer > streches its content. > So you might assign a material to find out... That is the nice part about > your implementation. > > BTW: Although your implementation is very creative I'd reccomend against it > because of performance. Just calculating a Quaternion from two > screencoordinates is much faster than doing a hit test. > > Erno > ---- > WPF tutorials: http://blogs.infosupport.com/ernow/articles/1878.aspx > > > > "viliescu" <viliescu@discussions.microsoft.com> wrote in message > news:38440214-4892-4DAB-99B3-E270594B0F16@microsoft.com... > > In Dec CTP I was using a 3D sphere with no Material (Material = null) as a > > trackball for my scene. I have ported the code to Feb CTP and it seems > > that > > the sphere is not hit anymore. > > I just wanted to ask if this is a voluntary change and if it is the > > intended > > behaviour in the final version WPF and I should implement another > > trackball > > (probably the one from Daniel Lehenbauer). > > > > -- > > Valentin Iliescu [MVP C#] > > > |
| | #4 (permalink) |
| Guest | Re: No hit results from 3D models with no material in Feb CTP Did you set HorizontalContentAlignment and VerticalContentAlignment of the UserControl to "Stretch" ? (Are you using a UserControl?) Erno "viliescu" <viliescu@discussions.microsoft.com> wrote in message news:2AB1A04B-0A2B-4537-9607-87F0E8F8368B@microsoft.com... > Thanks Erno, I have tried to add a transparent material and/or set the > opacity to 0 but it's not working - the objects from the sphere interior > are > not visible anymore. > -- > Valentin Iliescu [MVP C#] > > > "Erno" wrote: > >> Hi! >> >> My 3D objects disapeared after upgrading because the UserControl no >> longer >> streches its content. >> So you might assign a material to find out... That is the nice part about >> your implementation. >> >> BTW: Although your implementation is very creative I'd reccomend against >> it >> because of performance. Just calculating a Quaternion from two >> screencoordinates is much faster than doing a hit test. >> >> Erno >> ---- >> WPF tutorials: http://blogs.infosupport.com/ernow/articles/1878.aspx >> >> >> >> "viliescu" <viliescu@discussions.microsoft.com> wrote in message >> news:38440214-4892-4DAB-99B3-E270594B0F16@microsoft.com... >> > In Dec CTP I was using a 3D sphere with no Material (Material = null) >> > as a >> > trackball for my scene. I have ported the code to Feb CTP and it seems >> > that >> > the sphere is not hit anymore. >> > I just wanted to ask if this is a voluntary change and if it is the >> > intended >> > behaviour in the final version WPF and I should implement another >> > trackball >> > (probably the one from Daniel Lehenbauer). >> > >> > -- >> > Valentin Iliescu [MVP C#] >> >> >> |
| | #5 (permalink) |
| Guest | Re: No hit results from 3D models with no material in Feb CTP It is the intended behavior. A null Material property means the front faces aren't being drawn thus there are no front faces to hit. We changed this when we introduced BackMaterial. You said you tried using a transparent Material... was it a DiffuseMaterial? DiffuseMaterial writes to the depth buffer which will make things inside the sphere disappear. Try a fully transparent EmissiveMaterial instead. A virtual trackball like DanLehen's sample or as Erno suggests would be more efficient. Jordan > In Dec CTP I was using a 3D sphere with no Material (Material = null) as a > trackball for my scene. I have ported the code to Feb CTP and it seems > that > the sphere is not hit anymore. > I just wanted to ask if this is a voluntary change and if it is the > intended > behaviour in the final version WPF and I should implement another > trackball > (probably the one from Daniel Lehenbauer). > > -- > Valentin Iliescu [MVP C#] |
| | #6 (permalink) |
| Guest | Re: No hit results from 3D models with no material in Feb CTP Thank you. I am going to change the trackball implementation, as suggested. -- Valentin Iliescu [MVP C#] "Jordan Parker [MSFT]" wrote: > It is the intended behavior. A null Material property means the front faces > aren't being drawn thus there are no front faces to hit. We changed this > when we introduced BackMaterial. > > You said you tried using a transparent Material... was it a DiffuseMaterial? > DiffuseMaterial writes to the depth buffer which will make things inside the > sphere disappear. Try a fully transparent EmissiveMaterial instead. > > A virtual trackball like DanLehen's sample or as Erno suggests would be more > efficient. > > Jordan > > > In Dec CTP I was using a 3D sphere with no Material (Material = null) as a > > trackball for my scene. I have ported the code to Feb CTP and it seems > > that > > the sphere is not hit anymore. > > I just wanted to ask if this is a voluntary change and if it is the > > intended > > behaviour in the final version WPF and I should implement another > > trackball > > (probably the one from Daniel Lehenbauer). > > > > -- > > Valentin Iliescu [MVP C#] > > > |
| |
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reference Material | Dwarf | General Discussion | 0 | 05-28-2008 02:39 PM |
| DRM Material Not Being played | Matt | Vista General | 0 | 11-02-2007 02:14 AM |
| HTK models in Vista speech recognition | Ja-Pa | Vista General | 1 | 02-07-2007 03:28 PM |
| learning material on WPF.. | Radde | Avalon | 6 | 08-07-2006 04:30 AM |
| Adding models to a scene programmatically | Kevin Hoffman | Avalon | 4 | 03-07-2006 08:08 AM |