nicklockwood / glview Goto Github PK
View Code? Open in Web Editor NEW[DEPRECATED]
Home Page: http://www.charcoaldesign.co.uk/source/cocoa#glview
License: Other
[DEPRECATED]
Home Page: http://www.charcoaldesign.co.uk/source/cocoa#glview
License: Other
currently I have to manually set the scale and translation properties. Is there any method to set them automatically? Could you tell me any references ?
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.
when i test by iphone,xcode,i don't use simulator.
[self.context renderbufferStorage:GL_RENDERBUFFER_OES fromDrawable:(CAEAGLLayer *)self.layer];
Thanks.
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
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.
hi Nick,
is there any way to rotate or zoom ?
I have difficulties in trying to incorporate the method stated in the below webpage.
I have tried for a period of time but in vain. Could you instruct or show me how to add the antialiasing function to the current library? Thank you very much!!
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 convert to video (like mp4 or mpeg or quicktime) from self.videoView.animationImages
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 ?
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
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.
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.
I have such models, and the texture files don't seem to be loaded.
Is this currently not supported?
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.
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.
Hi Nick,
PFA my demo project.
I am facing following issues:
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
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.
Hi,
I'm trying to add this model and texture. The point is texture can't map correctly into model. Please help me!
http://www.turbosquid.com/FullPreview/Index.cfm/ID/656471
What I did?
Thanh.
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
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.
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.
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.
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
/GLView/Images/GLImage.m:289:60: Cast from 'const void *' to 'PVRTextureHeaderV2 *' drops const qualifier
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.