492 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • India
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
avenue28 says

Hi guys,

I’m trying to put pixel fonts in a pv3d material (as a part of movieclip, which is applied as a material to a plane), but the fonts are coming up very blurry. I found a great article here and a few sources on nabble like this and this, but nothing is working for me.

Here you can see what I tried – link. The one on the left is the movieclip which I dragged on to the stage in flash (that is why the text is so sharp and crispy) and the one on the right is added as a pv3d plane. The code I wrote for this can be seen here – pastie. Any help will be really appreciated. :)

8186 posts Community Moderator
  • Attended a Community Meetup
  • Community Moderator
  • Has been a member for 6-7 years
  • United Kingdom
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
  • Contributed a Blog Post
  • Beta Tester
  • Bought between 50 and 99 items
+4 more
MSFX Volunteer moderator says

this article may help as it deals with text in 3D, its from the book I mentioned in this post

8186 posts Community Moderator
  • Attended a Community Meetup
  • Community Moderator
  • Has been a member for 6-7 years
  • United Kingdom
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
  • Contributed a Blog Post
  • Beta Tester
  • Bought between 50 and 99 items
+4 more
MSFX Volunteer moderator says

just noticed you’ve got smoothing turned on, not sure for which side but switch it off as that will “blur” the text…

492 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • India
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
avenue28 says

well, that might work if I’m creating an application from scratch because I have the freedom to use the techniques mentioned in there. But what if I want to use an existing application (for example a text scroller) and map it onto a 3d plane without blurring the fonts?

492 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • India
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
avenue28 says
just noticed you’ve got smoothing turned on, not sure for which side but switch it off as that will “blur” the text…

I put that for the back side of the plane. It has a larger font. The plane with the pixel font has smoothing turned off.

4140 posts
  • Bought between 1 and 9 items
  • Brazil
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 1 and 9 users
  • Sold between 5 000 and 10 000 dollars
tsafi says

I am guessing you are doing something with text. You can try five3D its much better IMO with 3D text then PVD and will save you around 30-40 kb

1633 posts fueledweb.com
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Author had a Free File of the Month
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 7-8 years
+1 more
RimmonTrieu says

The x and y position of that plane in 2D coordinate may be not a round number:

screenPosX = 3dobj.screen.x + viewport.viewportWidth / 2;
screenPosY = 3dobj.screen.y + viewport.viewportHeight / 2

hence the blurry pixel font

492 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • India
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
avenue28 says
I am guessing you are doing something with text. You can try five3D its much better IMO with 3D text then PVD and will save you around 30-40 kb

Well, it is just a static text field. What can I do with it? I’ll try five 3d. Was going through a few tutorials today and looks much simpler than pv3d. But I’ve seen well displayed pixel fonts in pv3d too. Just wanted to see if someone here knows about it.

8186 posts Community Moderator
  • Attended a Community Meetup
  • Community Moderator
  • Has been a member for 6-7 years
  • United Kingdom
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
  • Contributed a Blog Post
  • Beta Tester
  • Bought between 50 and 99 items
+4 more
MSFX Volunteer moderator says
I am guessing you are doing something with text. You can try five3D its much better IMO with 3D text then PVD and will save you around 30-40 kb

Well, it is just a static text field. What can I do with it? I’ll try five 3d. Was going through a few tutorials today and looks much simpler than pv3d. But I’ve seen well displayed pixel fonts in pv3d too. Just wanted to see if someone here knows about it.

you can make sure that both the field and the plane are on exact integers…

492 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • India
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
avenue28 says
The x and y position of that plane in 2D coordinate may be not a round number:
screenPosX = 3dobj.screen.x + viewport.viewportWidth / 2;
screenPosY = 3dobj.screen.y + viewport.viewportHeight / 2
hence the blurry pixel font

checked it….screenPosX of plane is 330 and screenPosY is 200

by
by
by
by
by
by