[0.2.1] LDForge


Re: [0.2.1] LDForge
#74
After a quick glance the gl stuff seems ok, but...

I see you work with arrays called *indices*

Yet in the gl part you only bind vertex data and draw stuff with drawArrays. If you want to render indexed vertices you have to use two kinds of VBO's (GL_ELEMENT_ARRAY_BUFFER and GL_ARRAY_BUFFER) and use drawElements instead.

So you might just be drawing the first couple of unique vertices of the object.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
[0.2.1] LDForge - by Santeri Piippo - 2013-03-22, 18:48
Re: LDForge - by Roland Melkert - 2013-03-22, 20:20
Re: LDForge - by Santeri Piippo - 2013-05-22, 20:14
Re: LDForge - by Santeri Piippo - 2013-05-22, 20:16
Re: LDForge - by Philippe Hurbain - 2013-05-23, 7:41
Re: LDForge - by Michael Heidemann - 2013-03-22, 21:17
Re: LDForge - by Santeri Piippo - 2013-03-23, 22:56
Re: LDForge - by Tim Gould - 2013-03-23, 23:01
Re: LDForge - by Philippe Hurbain - 2013-03-24, 6:55
Re: LDForge - by Santeri Piippo - 2013-03-24, 23:15
Re: LDForge - by Michael Heidemann - 2013-03-25, 7:59
Re: LDForge - by Santeri Piippo - 2013-03-31, 15:20
Re: LDForge - by Michael Heidemann - 2013-03-31, 18:34
Re: LDForge - by Santeri Piippo - 2013-04-03, 10:35
Re: LDForge - by yugioh - 2013-04-03, 19:00
Re: LDForge - by Santeri Piippo - 2013-04-05, 12:07
Re: LDForge - by Santeri Piippo - 2013-04-16, 17:20
Re: LDForge - by Philippe Hurbain - 2013-04-16, 17:50
Re: LDForge - by Santeri Piippo - 2013-05-05, 13:16
Re: LDForge - by Michael Heidemann - 2013-05-05, 14:24
Re: LDForge - by Santeri Piippo - 2013-05-22, 13:17
Re: LDForge - by Philippe Hurbain - 2013-05-22, 14:25
Re: LDForge - by Magnus Forsberg - 2013-05-22, 15:52
Re: LDForge - by Santeri Piippo - 2013-05-22, 20:17
Re: LDForge - by Philippe Hurbain - 2013-05-23, 7:46
Re: LDForge - by Rolf Osterthun - 2013-05-23, 11:09
Re: LDForge - by Santeri Piippo - 2013-05-23, 13:39
Re: LDForge - by Santeri Piippo - 2013-05-23, 20:22
Re: LDForge - by Philippe Hurbain - 2013-05-23, 20:37
Re: LDForge - by Santeri Piippo - 2013-05-23, 20:50
Re: LDForge - by Magnus Forsberg - 2013-05-23, 22:40
Re: LDForge - by Philippe Hurbain - 2013-05-24, 13:13
Re: LDForge - by Santeri Piippo - 2013-05-24, 15:12
Re: LDForge - by Philippe Hurbain - 2013-05-24, 15:39
Re: LDForge - by Roland Melkert - 2013-05-24, 17:24
Re: LDForge - by Santeri Piippo - 2013-05-24, 19:19
Re: LDForge - by Santeri Piippo - 2013-06-14, 16:11
Re: LDForge - by Santeri Piippo - 2013-06-15, 22:31
Re: LDForge - by Fyodor Kolov - 2013-08-06, 10:33
Re: LDForge - by Santeri Piippo - 2013-08-16, 21:55
Re: [0.1 Alpha] LDForge - by Santeri Piippo - 2013-07-05, 22:32
Re: [0.1 Alpha] LDForge - by Philippe Hurbain - 2013-07-10, 15:45
Re: [0.2 Alpha] LDForge - by Santeri Piippo - 2013-07-09, 23:55
Re: [0.2 Alpha] LDForge - by Santeri Piippo - 2013-07-17, 13:26
Re: [0.2 Alpha] LDForge - by Santeri Piippo - 2013-08-03, 1:34
Re: [0.2 Alpha] LDForge - by Santeri Piippo - 2013-09-22, 20:11
Re: [0.2 Alpha] LDForge - by Philippe Hurbain - 2013-11-11, 13:14
Re: [0.2 Alpha] LDForge - by Santeri Piippo - 2013-12-19, 12:03
Re: [0.2 Alpha] LDForge - by Philippe Hurbain - 2013-12-19, 13:29
Re: [0.2 Alpha] LDForge - by Santeri Piippo - 2013-12-19, 14:14
Re: [0.2 Alpha] LDForge - by Santeri Piippo - 2013-10-16, 12:59
Re: [0.2 Alpha] LDForge - by Santeri Piippo - 2013-10-16, 16:26
Re: [0.2 Alpha] LDForge - by Santeri Piippo - 2013-10-16, 17:01
Re: [0.2 Alpha] LDForge - by Santeri Piippo - 2013-10-16, 19:08
Re: [0.2.1] LDForge - by Santeri Piippo - 2013-12-19, 13:27
Re: [0.2.1] LDForge - by Michael Heidemann - 2013-12-21, 7:40
Re: [0.2.1] LDForge - by Stan Isachenko - 2013-12-21, 17:41
Re: [0.2.1] LDForge - by Michael Heidemann - 2013-12-21, 19:50
Re: [0.2.1] LDForge - by Michael Heidemann - 2013-12-21, 20:00
Re: [0.2.1] LDForge - by Santeri Piippo - 2013-12-22, 14:01
Re: [0.2.1] LDForge - by Santeri Piippo - 2014-01-22, 11:41
Re: [0.2.1] LDForge - by Roland Melkert - 2014-01-22, 17:16
Re: [0.2.1] LDForge - by Santeri Piippo - 2014-01-22, 22:23
Re: [0.2.1] LDForge - by Tim Gould - 2014-01-22, 22:26
Re: [0.2.1] LDForge - by Roland Melkert - 2014-01-22, 22:42
Re: [0.2.1] LDForge - by Santeri Piippo - 2014-01-23, 16:15
Re: [0.2.1] LDForge - by Travis Cobbs - 2014-01-23, 18:37
Re: [0.2.1] LDForge - by Santeri Piippo - 2014-01-23, 20:44
Re: [0.2.1] LDForge - by Roland Melkert - 2014-01-23, 21:04
Re: [0.2.1] LDForge - by Travis Cobbs - 2014-01-23, 22:34
Re: [0.2.1] LDForge - by Santeri Piippo - 2014-01-24, 16:30
Re: [0.2.1] LDForge - by Roland Melkert - 2014-01-24, 18:03
Re: [0.2.1] LDForge - by Santeri Piippo - 2014-01-24, 18:45
Re: [0.2.1] LDForge - by Roland Melkert - 2014-01-24, 19:16
Re: [0.2.1] LDForge - by Santeri Piippo - 2014-01-24, 19:24
Re: [0.2.1] LDForge - by Santeri Piippo - 2014-01-24, 19:44
Re: [0.2.1] LDForge - by Roland Melkert - 2014-01-24, 19:50
Re: [0.2.1] LDForge - by Santeri Piippo - 2014-01-24, 19:53
Re: [0.2.1] LDForge - by Roland Melkert - 2014-01-24, 19:54
Re: [0.2.1] LDForge - by Santeri Piippo - 2014-01-24, 19:57
Re: [0.2.1] LDForge - by Roland Melkert - 2014-01-24, 20:03
Re: [0.2.1] LDForge - by Santeri Piippo - 2014-01-24, 20:14
Re: [0.2.1] LDForge - by Santeri Piippo - 2014-02-25, 14:20
Re: [0.2.1] LDForge - by Santeri Piippo - 2014-01-24, 20:05
Re: [0.2.1] LDForge - by Roland Melkert - 2014-01-24, 19:52
Re: [0.2.1] LDForge - by Santeri Piippo - 2014-02-25, 14:21
Re: [0.2.1] LDForge - by Santeri Piippo - 2014-03-24, 18:17
Re: [0.2.1] LDForge - by Willy Tschager - 2014-03-31, 18:18
Re: [0.2.1] LDForge - by Santeri Piippo - 2014-03-31, 18:37
Re: [0.2.1] LDForge - by Willy Tschager - 2014-03-31, 19:06
Re: [0.2.1] LDForge - by Santeri Piippo - 2014-03-31, 19:24
Re: [0.2.1] LDForge - by Santeri Piippo - 2014-04-17, 18:49
Re: [0.2.1] LDForge - by Santeri Piippo - 2014-07-03, 18:06
Re: [0.2.1] LDForge - by Santeri Piippo - 2014-07-29, 20:47
Re: [0.2.1] LDForge - by Philippe Hurbain - 2014-07-30, 13:34
Re: [0.2.1] LDForge - by Santeri Piippo - 2014-08-31, 17:33

Forum Jump:


Users browsing this thread: 9 Guest(s)