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.

textrue,background image
Vote this thread:


@UfoJia

Posts: 3

NGLNewbie

Fri, Dec 20 2013


Hello everyone, I need some help
I want to change the background image and the textrue
I do not know how to do

1.

nglView.backgroundColor=[UIColor colorWithPatternImage:[UIImage imageNamed:@"help_nav.png"]];

nglGlobalColor(nglColorMake(0.0, 0.0, 0.0, 1.0));

it does not support

2.
material.diffuseMap = [NGLTexture texture2DWithFile:@"texture0.jpg"];
_mesh.material = material;
[_mesh compileCoreMesh];

It gave the results I want
But when you quickly switch its memory will continue to increase and crash。

any idea ?thanks!
0% like this - 0/0

@UfoJia

Posts: 3

NGLNewbie

Fri, Dec 20 2013


In response to: @UfoJia

I hide the [_mesh compileCoreMesh];
textures disappear
0% like this - 0/0

@dineybomfim

Posts: 571

NGLAdmin

Fri, Dec 20 2013


In response to: @UfoJia

Hello there,

Well, NGLView is not an ordinary view. The best way is to treat it as an UIImageView in your project. See, you never set an UIImageView as your parent view and put many other views on it. You always use UIImageView as subview of a parent view.

In the same way, set a parent view, do what you want with the background of UIView and then put a NGLView with transparent background inside your parent view.

Now about the textures, yes. Unfortunately it's a bug on textures that keep loading memory.
100% like this - 1/1

@UfoJia

Posts: 3

NGLNewbie

Tue, Dec 24 2013


In response to: @dineybomfim

Thank you very much
0% like this - 0/0

@yang5664

Posts: 16

NGLNewbie

Mon, Mar 17 2014


In response to: @UfoJia

please reference to http://nineveh.gl/community/forum/problem_with_storyboard_nineveygl_image_background_behind_nglview
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.