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.

NGLCamera Orthographic Lens Help
Vote this thread:


@adameisfeld

Posts: 41

NGLUser

Mon, Jun 25 2012


Hi,

I'm having some trouble getting orthographic camera to work properly in my app. I'm attempting to allow the user to switch between perspective and orthographic mode, however when going into orthographic mode the camera zooms in extremely close.

The strange thing is, I cant seem to zoom to the camera back out once in orthographic mode. Something as simple as calling NGLMoveBackward on the camera with a large value either before or after switching the camera's lens to orthographic yields the same result as not moving the camera at all. Furthermore my methodology for zooming the camera out (via pinching, which works perfectly in perspective mode) also stops working (pinching does not move the camera in or out at all).

Am I doing something wrong? All I'm doing is this right now:

- (IBAction)clickedIsometricView:(id)sender
{

if (cameraMode == 0) {
cameraMode = 1;
[camera lensOrthographic:glView.frame.size.width/glView.frame.size.height near:0.01 far:10000];


} else {
cameraMode = 0;
[camera lensPerspective:glView.frame.size.width/glView.frame.size.height near:0.01 far:10000 angle:45];
}

}

A simple IBAction connected to a button to toggle the camera's lens. Any input would be greatly appreciated.

- Adam Eisfeld
0% like this - 0/0

@adameisfeld

Posts: 41

NGLUser

Mon, Jun 25 2012


In response to: @adameisfeld

I have now read online (in some OpenGL documentation) that using orthographic rendering does indeed stop the camera distance from affecting how things are drawn. This is a problem for me as I would like the orthographic projection style, but with the ability to zoom the camera in or out. Is this possible within Nineveh GL? From what I've read this is accomplished by changing the "scene bounding box" instead.

Again any help is greatly appreciated,
- Adam Eisfeld

0% like this - 0/0

@dineybomfim

Posts: 571

NGLAdmin

Mon, Jun 25 2012


In response to: @adameisfeld

Hello Adam,

The orthographic camera doesn't have any relation with the distance. So, when using it, movements on the camera will take no effects.

The "zoom" feature is something that many people are missing and we've made it, so in the very next version you will have the zoom property in the camera.
0% like this - 0/0

@adameisfeld

Posts: 41

NGLUser

Mon, Jun 25 2012


In response to: @dineybomfim

Sounds great, I look forward to it.
0% like this - 0/0
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.