Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-22-2008, 05:50 AM   #1 (permalink)
Registered Member
 
Join Date: Aug 2008
Posts: 49
Default Teapot GLSprite - How do I convert data to this format

I was trying to use GLSprite code to start learning some opengl stuff. looking at glsprite i see the arrays of vertices and normals, which makes sense, but I don't understand the purpose of the indices table (drawing order i assume?) but if I wanted to use a 3d program like blender to import some 3d graphics for use in an iphone program, how to do convert data to the teapot.h format with arrays for vertices, normals and indices.
zacware is offline   Reply With Quote
Old 09-17-2008, 08:21 PM   #2 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 41
Default

Bump...



I have a similar question. Can anyone give an explanation of the "normals" data as implemented in the GLGravity sample?

How would I calculate the normals for a given array of vertices and indices in order to render properly (effectively changing the teapot.h model data into a simple cube)??

I guess whats really throwing me off is the RunLengthEncoded Array: short new_teapot_indicies[]

Can anyone clarify how the data is being used?

Last edited by HoofSC; 09-18-2008 at 01:44 AM.
HoofSC is offline   Reply With Quote
Old 11-28-2008, 03:05 PM   #3 (permalink)
Registered Member
 
Join Date: Jul 2008
Posts: 459
Default

Anyone?
NewiPhoneDeveloper is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 588
22 members and 566 guests
Andy8888, Arfan, armmzz, bignoggins, BrianSlick, ckgni, dacapo, devangvyas, Duncan C, Hito_kun, kvu, learningtocode, linkmx, LiquidFire, MarcoAlmeida, Monstertaco, oceanlablight, soonw29, sudama, Vineesh
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,775
Threads: 89,203
Posts: 380,587
Top Poster: BrianSlick (7,129)
Welcome to our newest member, Andy8888
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:44 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0