on 30-04-2012 09:44 PM
Hi all,
I hope this doesn't sound like a stupid question...
I have a 3D model converted from DirectX format using the ModelConverter Tool, it displays just fine in the Simulator but the texture coordinates seems clamped to 0 - 1.
The original model has the coordinates ranging from 0->3 on X and 0->10 on Y... I've analyzed the whole code of the Model loader but seems it's all right, there is no sign of clamping
Any clue ?
Thanks,
Val
on 30-04-2012 11:40 PM
Might be a problem in the shader converter. I just recently had problems with GLSL in another project that was caused by the uniform values being low precision/range. I modified the shader to strictly use highp values in the parts that needed it and my shader worked fine.
on 01-05-2012 07:29 AM
on 04-05-2012 08:31 PM
on 10-05-2012 05:01 PM
Have you set the Wrap Mode?
i.e. m_texture.SetWrap(TextureWrapMode.Repeat);
I have tiled textures working without any problem.
I don't use BasicModel any more but you can get at the Model's texture array and set texture parameters.
I just manually looped over the array of textures calling SetWrap on each one.
Claire
on 11-05-2012 06:40 AM
on 11-05-2012 03:44 PM
on 11-05-2012 08:58 PM
on 15-05-2012 12:24 PM
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を一度ログアウトし、再度ログインしてください。


Website ©2013 Sony Computer Entertainment Europe
All content, game titles, trade names and/or trade dress, trademarks, artwork and associated imagery are trademarks and/or copyright material of their respective owners. All rights reserved. [more info]
%%http://community.eu.playstation.com/t5/Announcements/Beta-Trial-Information/td-p/11386362
best_shooter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_driver.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_performer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_footballer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_fighter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_creator.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_action_player.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
dev2.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Producer-and-Developer-Ranks/td-p/18407352
trophy.gif%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/The-Community-Awards-FAQ/td-p/18407096
PSlogoSM.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Online-Support-Coordinator-rank/td-p/18414870