Graphics

Reply

Point sprites on PS Vita - Shader semantic POINTCOORD unsupported ?

Hello everybody,

 

I made the following shader :

 

Particles.vcg :

-------------------

 

void main( float4 in a_Position : POSITION,
float4 in a_Color : COLOR0,
float in a_Size : TEXCOORD0,
float4 out v_Position : POSITION,
float4 out v_Color : COLOR0,
float out v_Size : PSIZE,
uniform float4x4 projViewMatrix )
{
v_Position = mul( a_Position, projViewMatrix );
v_Color = a_Color;
v_Size = a_Size;
}

 

Particles.fcg :

-------------------

 

void main( float4 in v_Color : COLOR0,
float2 in v_Coord : POINTCOORD,
float4 out Color : COLOR ,
uniform sampler2D texture0 : TEXUNIT0 )
{
//float textVal = tex2D(texture0, v_Coord).r;
//if ( textVal < 0.1f )
// discard;
Color = v_Color;
//Color.a *= textVal;
}

 

When I execute it on the Playstation Suite emulator, I don't have any problem. But, when I try it on the PS Vita device, it seems that it freezes on shader compilation code line :

program = new ShaderProgram("/Application/shaders/Particles.cgx");

 

If I comment the line with the "POINTCOORD" semantic in my "Particles.fcg" shader file, there is not anymore freeze on the device.

 

Is it normal ? Is there any by-pass to display a texture on a point sprite (other than drawing a quad) ?

 

Thank you for your answers :smileywink:

 

Please use plain text.

Re: Point sprites on PS Vita - Shader semantic POINTCOORD unsupported ?

[ Edited ]

Hi OperationNT,

 

Thank you for the report. This is obviously not the desired behaviour between the Simulator and the physical device and we will investigate this problem.

Thanks again,
James

PlayStation®Mobile Dev Team
Please use plain text.

Re: Point sprites on PS Vita - Shader semantic POINTCOORD unsupported ?

Hi.

 

Is there some advencement with this bug??

 

I have exactly the same problem.

 

Thanks.

Please use plain text.

Re: Point sprites on PS Vita - Shader semantic POINTCOORD unsupported ?

Not at this moment in time. We are investigating internally. I will update you both as soon as we have more information.
PlayStation®Mobile Dev Team
Please use plain text.

Re: Point sprites on PS Vita - Shader semantic POINTCOORD unsupported ?

Thanks for the info :smileyhappy:

Please use plain text.
Announcements

Welcome to the PlayStation Mobile Developer Forums


This is a community for the discussion of technical topics with other developers and SCE engineers. Posting ideas/requests are also appreciated. Join the discussion!

PlayStation®Mobile開発者フォーラムでは世界中の開発者の皆様と一緒に、議論や情報交換が可能です。SCEも議論に参加し、皆様の開発をサポートします。アイデアやリクエストも大歓迎です。ぜひご参加ください。

PSM Developer Registration (for free) on PSM DevPortal is required to post on the forum.
Please sign out then sign in again to the forum and PSM DevPortal after you have completed the registration.

フォーラムへ投稿をするにはPSM DevPortalへの登録(無料)が必要です。
登録後はフォーラムと PSM DevPortalを一度ログアウトし、再度ログインしてください。