I want to load vertices from some sort of file and draw the object . how can I do this for a simple rectangle for example ? I want to start with something simple first. is there any tutorial for doing this that I can refer to ?
Asked
Active
Viewed 180 times
0
-
what is your question : loading data from a file or drawing ? Your title says load but your text includes "draw for a rectangle" – Philippe Girolami Apr 26 '12 at 13:58
-
I want to load the positions from a file and draw that – Aida E Apr 26 '12 at 13:59
-
Load from an Asset but for drawing, I'll pass. – Philippe Girolami Apr 26 '12 at 14:03
-
Your questions boils down to: how do i load float arrays from a file? I'm absolutely sure that a simple google search will help you. You can also refer to this [Question](http://stackoverflow.com/questions/204363/is-there-a-way-to-import-a-3d-model-into-android) which is similar to yours. – Renard Apr 26 '12 at 14:23
-
I'm new to opengl and android and I searched a lot but could not find any good tutorial or simple example . – Aida E Apr 26 '12 at 14:37
-
so [what have you tried](http://mattgemmell.com/2008/12/08/what-have-you-tried/) and why didn't it work out? – Renard Apr 26 '12 at 14:45