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.

crashes on the device
Vote this thread:

redirected." width="73px" height="73px"/>

@mrgmg1

Posts: 3

NGLNewbie

Wed, Sep 26 2012


Hello,
when running on the device, crashes.
What's the problem?

* thread #12: tid = 0x2903, 0x313c7f78 libobjc.A.dylib`objc_msgSend 16, stop reason = EXC_BAD_ACCESS (code=1, address=0x20000008)
frame #0: 0x313c7f78 libobjc.A.dylib`objc_msgSend 16
frame #1: 0x0006b684 ArtBook`-[NGLTimer timerCycle:] 108
frame #2: 0x35f9360c Foundation`__NSFireTimer 144 frame #3: 0x37070a32 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ 14
frame #4: 0x37070698 CoreFoundation`__CFRunLoopDoTimer 364
frame #5: 0x3706f26e CoreFoundation`__CFRunLoopRun 1206
frame #6: 0x36ff24a4 CoreFoundation`CFRunLoopRunSpecific 300
frame #7: 0x36ff236c CoreFoundation`CFRunLoopRunInMode 104
frame #8: 0x0006ac00 ArtBook`-[NGLThread spawnThread] 148
frame #9: 0x35efea80 Foundation`-[NSThread main] 72 (lldb)

Thanks
0% like this - 0/0

@dineybomfim

Posts: 571

NGLAdmin

Wed, Sep 26 2012


In response to: @mrgmg1

Hello buddy,

Few information buddy. Just by this error we can say anything without know what you're doing inside your application code.
0% like this - 0/0
redirected." width="73px" height="73px"/>

@mrgmg1

Posts: 3

NGLNewbie

Fri, Sep 28 2012


- (id)initWithFrame:(CGRect)frame meshName:(NSString*)meshName {
self = [super initWithFrame:frame];
if (self) {
[self setBackgroundColor:[UIColor clearColor]];
[self setMultipleTouchEnabled:YES];

_originBounce = frame;
_isLoadMesh = NO;
//делаем фон прозрачным;
nglGlobalColorFormat(NGLColorFormatRGBA);
nglGlobalFlush();

//создаем mesh
NSDictionary *settings = [NSDictionary dictionaryWithObjectsAndKeys:
kNGLMeshOriginalYes, kNGLMeshKeyOriginal,
kNGLMeshCentralizeYes, kNGLMeshKeyCentralize,
[NSString stringWithFormat:@"%f", meshNormilize], kNGLMeshKeyNormalize,
nil];
_mesh = [[NGLMesh alloc] initWithFile:meshName settings:settings delegate:self];

//камера
_camera = [[NGLCamera alloc] initWithMeshes:_mesh, nil];

UIImage *closeImage = [UIImage imageNamed:@"close.png"];
_closeButton = [UIButton buttonWithType:UIButtonTypeCustom];
[_closeButton addTarget:self action:@selector(actionCloseButton:) forControlEvents:UIControlEventTouchUpInside];
[_closeButton setBackgroundImage:closeImage forState:UIControlStateNormal];
[_closeButton setFrame:CGRectMake(0, 0, closeImage.size.width, closeImage.size.height)];
[_closeButton setAlpha:0.0f];
[_closeButton setEnabled:NO];
[self addSubview:_closeButton];

[self viewInFullScreen:NO];

}
return self;
}


- (void) drawView {
if (_isLoadMesh) {
//если обьект заскейлен, возвращаем обратно.
// if (_isFullScreen) {
if (_isScale && !_isMove) {

if (_scale zoomStep < defZoom) {
_scale = zoomStep;
} else if (_scale - zoomStep > defZoom) {
_scale -= zoomStep;
} else {
_scale = 1.0f;
_isScale = NO;
}
[self setMeshScale:_scale];
}
// }


//если обьект сдвинут, возвращаем обратно.
if (!_isMove) {
_movePosition -= moveStep;

CGPoint nextPos;

//если двигать обьект

if (_movePosition > 0) {
nextPos = [self getPointOnLine:CGPointMake(0, 0) and:CGPointMake(_mesh.x, _mesh.y) t:_movePosition];
} else {
_movePosition = 0;
nextPos = [self getPointOnLine:CGPointMake(0, 0) and:CGPointMake(_mesh.x, _mesh.y) t:_movePosition];
}
_mesh.x = nextPos.x;
_mesh.y = nextPos.y;

if (!_isFullScreen) {
//если двигать view
if (_movePosition > 0) {
nextPos = [self getPointOnLine:_originBounce.origin and:self.frame.origin t:_movePosition];
} else {
_movePosition = 0;
nextPos = [self getPointOnLine:_originBounce.origin and:self.frame.origin t:_movePosition];
}
self.frame = CGRectMake(nextPos.x, nextPos.y, self.frame.size.width, self.frame.size.height);
}
}

[_camera drawCamera];
}
}
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.