Giter VIP home page Giter VIP logo

glview's People

Contributors

nicklockwood avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

glview's Issues

Specifications of creating compatible 3D models ?

Hi Nick,

Is there any particular specification of creating blender models exported as obj ? Is there any particular specification creating textures of models?

By specifications I mean scale factor camera distance etc.

exc_bad_access

when i test by iphone,xcode,i don't use simulator.

[self.context renderbufferStorage:GL_RENDERBUFFER_OES fromDrawable:(CAEAGLLayer *)self.layer];

Thanks.

texture atlases appear off

I'm using GLModelView to show a single obj file and my texture is always incorrect. It looks good viewing it in any of the other 3d viewers I have, but the texture is always off in glview.

The code

[modelView setTexture:[GLImage imageNamed:@"111.jpg"]];
[modelView setModel:[GLModel modelNamed:@"111.obj"]];

The data
https://s3.amazonaws.com/hover-development/bug+reports/glview/111.obj
https://s3.amazonaws.com/hover-development/bug+reports/glview/111.jpg
https://s3.amazonaws.com/hover-development/bug+reports/glview/111.mtl
https://s3.amazonaws.com/hover-development/bug+reports/glview/111_expected.jpg
https://s3.amazonaws.com/hover-development/bug+reports/glview/111_actual.jpg

obj model texture from mtl and png files.

Hi,
Is there any way to load texture of a obj file from mtl and png files? Or convert mtl and png files into an image(png/jpg) file that supports GLView as texture?

I saw the issue #23, but it is not answered. Nick, would you please help us out?
Btw, thanks for updating the library.

Can't show large image which is 24MB

I try to load the image which is jpg and the size is 24MB. when I run the demo on my iPhone4s, the imageView is gray , it means the image can't show corretly.

How to rotate 3D Model in GLModel Sample ?

I tried adding gesture recogniser to the modelView but nothing is happening.
Kindly guide me how would I rotate a 3D model in your sample using touch gesture or using a button tap ?

Retina Display

Hi,
I'm using the library for an app to iPad 3, and the image aren't with the whole size of screen. How is the better approach to work with retina display and PVR images.

Thanks

Obj model pivot is not centered

Hi,
When I tried to scale and rotate a obj model I saw it doesn't transform around it's center. After opening that model in Blender I saw it's pivot is at right rather than center.
I searched GLView for any attribute that can change pivot, but found nothing.
Is there any way so I can change model's center? Specially, how do I transform (scale and rotation only) a model around it center?
Thank you.

Model not displaying

I'm loading an obj file and trying to display it in my GLModelView, but all I'm getting is a black screen. I've printed the data of my obj file to ensure that I didn't mess up the file path, and got what I expected.

EXC_BAD_ACCESS (code=1, address=0x11f0)

Hi,

I just updated my iPad's version to 8.3 and my XCode to 6.4. I am now having an issue on createFrameBuffer function on GLView class. If you could please help. below is the snapshot

screen shot 2015-07-17 at 9 33 17 am

How to rotate a GLImageView

I am a complete noob when it comes to 3D anything. I am trying to use the GLImageDemo included and add the ability to rotate (perhaps "spin" would be a better word) the space ship around. How would I accomplish this?

Sorry in advance, I just have no idea how to do it.

A potential bug

When loading the .obj file, the code " NSNumber *index = [indexStrings objectForKey:indexStrings] " should be " NSNumber *index = [indexStrings objectForKey:indexString] ". Otherwise the MutableDictionary indexStrings is not useful.

Hope what I found is right.

Different transforms, rotations and scales for different objects plus unable to load texture file

Hi Nick,
PFA my demo project.

I am facing following issues:

  1. Setting up different scales and transformations for different models. How can I make them consistent throughout ? How would I achieve dynamic behaviour if I have to hard code the translations ?
  2. Unable to load textures for many models. If you select the menu on the bottom left corner and select samsung or nikon d700, you may find that the textures aren't loaded properly even though they were originally exported for the same model. I also tried your method of rotating the tga/texture file by 180 degrees but it didn't help.

Following is the dropbox link of the project:

https://www.dropbox.com/s/tbpqulwsnwi4oar/GLModel%20Demo.zip?dl=0

Please Help Me clear my mind. Please

Regards,
Lokesh

Memory Issue

Hi, it is a fantastic library for my app project. thanks.
But, I found one big problem.
I'm using this library instead of UIImageView's frame animation.
UIImageView animation's real memory size is 50MB, and is freeing from memory properly after paging next view.
But, GLImageView animation's real memory size is 100MB, and doesn't free from memory at all.
I use ARC, and chek in Instruments.
Please, help me.

Texture files not fitting properly ?

I am successfully able to load 3D models exported from blender. But when I apply the texture using:
modelView.texture = [GLImage imageNamed:@"xyz.png"];
it is not fitting properly. It is generally coming out to be stretched. Any idea.
It is consistent with every model I have downloaded from internet or exported using blender

Display vertex colors from OBJ file

Apparently, there is a pseudo-standard for storing color data along with each vertex in OBJ files:

It looks something like this:

v 1220.094482 -572.500000 177.713943 0.984314 0.764706 1.000000

where the last 4 numbers represent RGBA, from 0 to 1.

From: http://gamedev.stackexchange.com/questions/21303/how-can-i-include-vertex-color-information-in-obj-files/66270#66270

Scanning this data is easy enough. I am willing to make a PR with these changes, but could use a hint as to what needs to be changed in GLModel's draw method to actually draw the colors.

Multiple simultaneous 'PVR videos'

Hi,

Is it possible to have several 'PVR videos' playing at the same time? I'm trying with two and it's not working. Only the 'video' created last is displayed.

Thanks for sharing,

Hugues.

Unable to find interface declaration for 'UIColor'

The UIColor (GL) interface declaration in GLUtils.m is returning compile time error.
I have simply transferred all the library file to a new project and imported all the frameworks.

Regards,
Lokesh

error when cast type

/GLView/Images/GLImage.m:289:60: Cast from 'const void *' to 'PVRTextureHeaderV2 *' drops const qualifier

GLImage and custom blending modes

When attempting to display GLImage instance with some custom glBlendFunc() values inside the GLView drawRect: override, looks like the glBlendFunc() is ignored. That happens because of glBlendFunc call in the bindTexture method.

Is there a way to make custom blending values work with GLImage?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.