Multi Texture sample does not work

Discussion about using Moai SDK - post questions, bugs and issues here.

Moderators: seebs, franciscotufro

Multi Texture sample does not work

Postby festival » Mon Jul 02, 2012 1:57 pm

The Multi Texture sample at "Samples/texture" does not work
Since I'm no shader expert maybe anyone has a clue.

ERROR: 0:16: '*' : wrong operand types no operation '*' exists that takes a left-hand operand of type 'attribute 4-component vector of float' and a right operand of type 'const 2-component vector of float' (or there is no acceptable conversion)
ERROR: 0:16: 'assign' : cannot convert from 'attribute 4-component vector of float' to 'varying 2-component vector of float'

ERROR: 0:16: '*' : wrong operand types no operation '*' exists that takes a left-hand operand of type 'attribute 4-component vector of float' and a right operand of type 'const 2-component vector of float' (or there is no acceptable conversion)
ERROR: 0:16: 'assign' : cannot convert from 'attribute 4-component vector of float' to 'varying 2-component vector of float'
festival
 
Posts: 30
Joined: Mon Jun 11, 2012 11:16 am
Location: Germany

Re: Multi Texture sample does not work

Postby pygy79 » Tue Jul 03, 2012 8:17 am

Thanks for the report.

Could you tell us what version of Moai you're using? Pre-built? Compiled by yourself?

It would also be useful to know what OS and graphic card you're using.
User avatar
pygy79
 
Posts: 69
Joined: Wed Jan 04, 2012 3:13 am

Re: Multi Texture sample does not work

Postby festival » Wed Jul 04, 2012 10:37 am

pygy79 wrote:Thanks for the report.

Could you tell us what version of Moai you're using? Pre-built? Compiled by yourself?

It would also be useful to know what OS and graphic card you're using.


OSX host. Compiled myself. Moai V1.2 r2.

Other shader samples did worked, btw.
festival
 
Posts: 30
Joined: Mon Jun 11, 2012 11:16 am
Location: Germany

Re: Multi Texture sample does not work

Postby festival » Sat Jul 07, 2012 2:07 am

This helped. Changing the shader.vsh line 14 to
Code: Select all
  1. uvVarying1 = vec2(position.x*0.5,position.y*-0.5 );

festival
 
Posts: 30
Joined: Mon Jun 11, 2012 11:16 am
Location: Germany


Return to Moai SDK

Who is online

Users browsing this forum: No registered users and 2 guests

x