Release 2.1.5

3 views
Skip to first unread message

Sergey Basalaev

unread,
Sep 18, 2013, 12:08:09 PM9/18/13
to Alchemy OS
Fixed trouble with m3g and a couple of other minor bugs.

Warning: if anyone downloaded alchemy-os-2.1.5.jar prior
to this message (there were 4 downloads already), please,
download it again - that file was erroneous.

Kyle Alexander Buan

unread,
Sep 18, 2013, 10:03:40 PM9/18/13
to alche...@googlegroups.com
Trying :)
> --
> You received this message because you are subscribed to the Google Groups
> "Alchemy OS discussion group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to alchemy-os+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

Kyle Alexander Buan

unread,
Sep 19, 2013, 4:51:16 AM9/19/13
to alche...@googlegroups.com
Sergey, it seems VertexBuffer.setNormals(VertexArray) has a problem.
It says "Illegal argument". Here's a section of the code:

var vertn = new [Byte]{ 0, 0, 127, 0, 0, 127, 0, 0, 127, 0, 0, 127, 0,
0, -128, 0, 0, -128, 0, 0, -128, 0, 0, -128, 127, 0, 0, 127, 0, 0,
127, 0, 0, 127, 0, 0, -128, 0, 0, -128, 0, 0, -128, 0, 0, -128, 0, 0,
0, 127, 0, 0, 127, 0, 0, 127, 0, 0, 127, 0, 0, -128, 0, 0, -128, 0,
0, -128, 0, 0, -128, 0 }
var vnorm = new VertexArray(vertn.len/3, 3, 1)
vnorm.set(0, vertn.len/3, vertn)
vb.setNormals(vnorm)

vb.SetNormals() doesn't work.
vb is a VertexBuffer.

On 9/19/13, Sergey Basalaev <sbas...@gmail.com> wrote:

Sergey Basalaev

unread,
Sep 19, 2013, 7:43:38 AM9/19/13
to Alchemy OS

2013/9/19 Kyle Alexander Buan <tar.s...@gmail.com>

Sergey, it seems VertexBuffer.setNormals(VertexArray) has a problem.
It says "Illegal argument". Here's a section of the code:

var vertn = new [Byte]{ 0, 0, 127, 0, 0, 127, 0, 0, 127, 0, 0, 127, 0,
0, -128, 0, 0, -128, 0, 0, -128, 0, 0, -128, 127, 0, 0, 127, 0, 0,
127, 0, 0, 127, 0, 0, -128, 0, 0, -128, 0, 0, -128, 0, 0, -128, 0, 0,
0, 127, 0, 0, 127, 0, 0, 127, 0, 0,  127, 0, 0, -128, 0, 0, -128, 0,
0, -128, 0, 0, -128, 0 }
var vnorm = new VertexArray(vertn.len/3, 3, 1)
vnorm.set(0, vertn.len/3, vertn)
vb.setNormals(vnorm)

vb.SetNormals() doesn't work.
vb is a VertexBuffer.

I checked and all functions mentioned here seem to be mapped correctly,
can it be that error is in your code? Here is excerpt from the Javadoc
for VertexBuffer.setNormals

Throws:
java.lang.IllegalArgumentException - if (normals != null) && (normals.getComponentCount != 3)
java.lang.IllegalArgumentException - if (normals != null) && (normals.getVertexCount != getVertexCount) && (at least one other VertexArray is set)
If you called setNormals in previous code I assume that you must unset
those normals and set new ones. Like

vb.setNormals(null)
vb.setNormals(vnorm)

Kyle Alexander Buan

unread,
Sep 20, 2013, 1:18:32 AM9/20/13
to alche...@googlegroups.com
Okay, it was an error in my code. Everything is okay.

On 9/19/13, Sergey Basalaev <sbas...@gmail.com> wrote:
> 2013/9/19 Kyle Alexander Buan <tar.s...@gmail.com>
>
>> Sergey, it seems VertexBuffer.setNormals(VertexArray) has a problem.
>> It says "Illegal argument". Here's a section of the code:
>>
>> var vertn = new [Byte]{ 0, 0, 127, 0, 0, 127, 0, 0, 127, 0, 0, 127, 0,
>> 0, -128, 0, 0, -128, 0, 0, -128, 0, 0, -128, 127, 0, 0, 127, 0, 0,
>> 127, 0, 0, 127, 0, 0, -128, 0, 0, -128, 0, 0, -128, 0, 0, -128, 0, 0,
>> 0, 127, 0, 0, 127, 0, 0, 127, 0, 0, 127, 0, 0, -128, 0, 0, -128, 0,
>> 0, -128, 0, 0, -128, 0 }
>> var vnorm = new VertexArray(vertn.len/3, 3, 1)
>> vnorm.set(0, vertn.len/3, vertn)
>> vb.setNormals(vnorm)
>>
>> vb.SetNormals() doesn't work.
>> vb is a VertexBuffer.
>>
>
> I checked and all functions mentioned here seem to be mapped correctly,
> can it be that error is in your code? Here is excerpt from the Javadoc
> for VertexBuffer.setNormals
>
> *Throws:* java.lang.IllegalArgumentException - if (normals != null) &&
> (normals.getComponentCount != 3) java.lang.IllegalArgumentException -
> if (normals
> != null) && (normals.getVertexCount != getVertexCount) && (at least one
> other VertexArray is set)If you called setNormals in previous code I assume
> that you must unset
> those normals and set new ones. Like
>
> vb.setNormals(null)
> vb.setNormals(vnorm)
>
Reply all
Reply to author
Forward
0 new messages