Login Action Required

The NinevehGL Forum uses a new concept of "socialized forum" or as we like to say "Tweet Forum".


Here is the deal:
  1. No new registration is required. Just sign in with your Twitter account and authorize the NinevehGL Forum.
  2. Once you’re in, you'll be able to "Follow a Thread", that means every time that thread receive a new post or update you'll receive a mention on your twitter.
  3. Besides, you can enable "Auto Share", then every new post and/or thread you make will be tweeted on your timeline. (By default, auto-share is enabled only for your threads)

Forum Rules:

1. We understand human comunication can become "hot" sometimes. So some insults and bad words ARE allowed. Just don't push too much being an asshole all the time.

2. SPAMMERS are not allowed. There are penalties for this kind of user and they can be banned forever.

3. You can report other users, if you judge necessary. An user reported many times by many people can also be banned forever. However you can also receive penalties for report deliberately for no apparent reason.

If there is a similar thread title, make sure the other one doesn't already have the answer you're looking for.

This forum uses the BBCode (Bulletin Board Code), here are some instructions:

Bold: [b]text[/b]
Italic: [i]text[/i]
Underline: [u]text[/u]

Code: [code]text[/code]
Quote:
[quote=@username]text[/quote]
[quote]text[/quote]

List:
[ul] [*]item [/ul]
[ol] [*]item [/ol]

URL:
[url]http://url.com[/url]
[url=http://url.com]text[/url]

Image:
[img]http://imageurl.com[/img]

Embed (videos, code, 3D):
[embed]http://url.com[/embed]

Welcome to the NinevehGL's world!
NinevehGL is a 3D engine forged with pure Obj-C.
Welcome to the
Forum!
Hello, Guest.

Your current vote:

You can change your vote many times. But it's still one single vote.

Is there a method available to....
Vote this thread:


@pwhitlock

Posts: 12

NGLNewbie

Wed, Jan 23 2013


I am looking for a way to manually rotate my mesh around its x and y axis using gestures. I have my gesture recognition working but can't seem to find a way to rotate the mesh when the touch occurs. I saw that someone has done this in the apps thread, but can't figure out how. Is there something i am missing that will do this? Any help would be awesome.
100% like this - 2/2

@dineybomfim

Posts: 571

NGLAdmin

Thu, Jan 24 2013


In response to: @pwhitlock

Hello,

Sure, here is what you're looking for:
http://nineveh.gl/docs/Classes/NGLObject3D.html#//api/name/rotateRelativeToX:toY:toZ:

There are many methods with the name "rotateRelative", "translateRelative", etc... these methods make change in the local space only. Just remember that Global rotation and Local rotation has no connection between them, so making consecutive relative rotations will never change the global rotation.

Besides, this can also help you to understand the concepts of various rotations forms:
http://www.youtube.com/watch?v=t5DzKP6y0nU
100% like this - 1/1

@pwhitlock

Posts: 12

NGLNewbie

Thu, Jan 24 2013


In response to: @dineybomfim

Thanks for the reply! I have watched the video and was looking over the docs you linked, is it possible to see the source code you are using in the rotations lesson 6 video? If I could play with that I think it would help me out alot. The rotation code in the lessons folder only shows the look at example and isn't what I am going for with my project. Thanks again and thank you for bringing us this amazing 3d engine, great work!!!!
0% like this - 0/0

@pwhitlock

Posts: 12

NGLNewbie

Thu, Jan 24 2013


In response to: @dineybomfim

Oh wow, I got it!! Was missing a very important piece in my code, the rotation!! Now I feel less that smart

Anyways, thanks again for pointing me in the right direction and have a great day.
0% like this - 0/0

@pwhitlock

Posts: 12

NGLNewbie

Thu, Feb 28 2013


In response to: @dineybomfim

Ok, so i have just about every part of my app ready except for one thing. I want to be able to tap on the model and move it around the screen. Is there any pointer you or anyone else can give me to push me in the right direction on how to go about this? Thanks again for the great work and help!!
0% like this - 0/0

@dineybomfim

Posts: 571

NGLAdmin

Mon, Mar 18 2013


In response to: @pwhitlock

Hi,

The 3D coordinate to 2D screen conversion is not ready yet. The best you can do is a fake calculation to simulate the conversion, just like in the NinevehGL examples (Rotation project for example).
0% like this - 0/0

@pwhitlock

Posts: 12

NGLNewbie

Mon, Mar 18 2013


In response to: @dineybomfim

Thanks, that's what I thought, I just wanted to ask to make sure I wasn't missing something again. Any updates on the new beta?
0% like this - 0/0

@dineybomfim

Posts: 571

NGLAdmin

Fri, Mar 29 2013


In response to: @pwhitlock

Not yet.
Very sad for that.
0% like this - 0/0

@pwhitlock

Posts: 12

NGLNewbie

Thu, Apr 4 2013


In response to: @dineybomfim

How about something easier than dragging in the camera space for now, and just dragging my mesh around the view. Just a single finger and drag it around? I have been trying to figure this out and cannot get it. Like in the magic space app. Any pointers?
0% like this - 0/0

@dineybomfim

Posts: 571

NGLAdmin

Thu, Apr 4 2013


In response to: @pwhitlock

Hello buddy,

As in NinevehGL sample projects, NinevehGL tutorials, Magic Space and many other apps with NinevehGL, there is no real touch moving as you're looking for. For example, the screenX = 20.0f has no similar in the 3D space.

All that we do is to move the mesh based on the movement of your finger. It's simple. Implement the iOS touch routine, when the user moves his finger you move your mesh according. For example: user moved his finger 10.0f in X, assuming your camera is in the center of the world, move the mesh 10.0f in X too. Depending on the Z this increment should be changed by a factor to create the screen effect you want.

Real mesh touching will come in the next NinevehGL version.
100% like this - 1/1
Technology

NinevehGL is a 3D engine built right on top of OpenGL ES and it uses all the programmable pipeline power, making it easy for you to create great application with shaders.

Share on


Follow NinevehGL
Fastest way to contact us:

Copyright © 2011 db-in. All rights reserved.