Author Topic: 3d model is not visible in NGUI , after several attempts.  (Read 2295 times)

ysrikanth2011

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Hello ,
I am creating a store which has different characters.The character is seen in the scene view but I can't see it in the Game View .
Do I need a new camera which shows this model or I would have to change some properties of the existing UICamera of NGUI .
I am using the NGUI version 3.6.1 .
Also I need to make the model scaling very large such as 100,100,100  in order to be viewed does this affect performance and is there any solution , Also I will have to reduce the size of the NGUI Sprites to be  very low like 0.2 , does it mean I will have to take very small images?

P.S : I have changed the character Layer to UI , which is the layer for UIRoot2D and all UI Elements .

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: 3d model is not visible in NGUI , after several attempts.
« Reply #1 on: July 20, 2014, 08:49:08 AM »
Try to select your UICamera and see where its viewable area is (with the gizmo) then see if your characters are inside this.

Remember, if you put the character inside the NGUI hierarchy, then it's under the UIRoot which converts the localScale to ~about pixel sizes, which means the characters need to be scaled up quite a bit to be more than a blip on the screen.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 3d model is not visible in NGUI , after several attempts.
« Reply #2 on: July 20, 2014, 06:20:44 PM »
Indeed, as Nicki pointed out, if you put something underneath the UIRoot then it will be affected by UIRoot's scale, which is 2 / Screen.height by default, which is a very small value.

ysrikanth2011

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: 3d model is not visible in NGUI , after several attempts.
« Reply #3 on: July 22, 2014, 02:20:33 AM »
Ok I have finally solved this problem by creating a new camera for the Character and set it to show only that character .
This link was very useful :
http://www.41post.com/3255/programming/unity3d-creating-a-gui-with-both-3d-and-2d-elements