Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

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.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

No hit results from 3D models with no material in Feb CTP

Closed Thread
 
Thread Tools Display Modes
Old 03-05-2006   #1 (permalink)
viliescu
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#]
Old 03-06-2006   #2 (permalink)
Erno
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#]



Old 03-06-2006   #3 (permalink)
viliescu
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#]

>
>
>

Old 03-06-2006   #4 (permalink)
Erno
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#]

>>
>>
>>



Old 03-06-2006   #5 (permalink)
Jordan Parker [MSFT]
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#]



Old 03-07-2006   #6 (permalink)
viliescu
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#]

>
>
>

Closed Thread

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








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50