G!=g Maxscript gw

Hey all,

I am using gw.text in maxscript. But he is displaying the g as a q. But G as G. you also have this problem? Or is this a clipping issue ?

Greetz

Nysuatro

I’m seeing “g” and “q” when I run this test:

function tempGWTest =
(
gw.setRndLimits #(#illum, #Specular, #texture, #Lighting)
gw.htext (gw.hTransPoint [0,0,0]) (“gggggqqqqqGGGG”)
gw.enlargeUpdateRect #whole
gw.updateScreen()
)
unregisterRedrawViewsCallback tempGWTest
registerRedrawViewsCallback tempGWTest

Make sure you unregister the callback manually in a MaxScript listener or you’ll be seeing that until you shut down Max. :wink:

I haven’t seen this problem either. Some sample code for people to test would help debug the issue.

Also, it could do with your Windows language/culture issues. I’d suggest changing your language to English (US) and seeing if that changes things.

It could be Text clipping, the Font is too big for text quad. You could test it with another letter like “y” and see if it is cropping the lowest pixels.

If you have a screenshot that would help too.

~B)

That is reallly strange. I have it tested by some other people and they have no problems too. Jeff said it is maybe of my configuration of graphicscard. Already have been trying out some thing but not really good results.

@Torgo : It is unregistered. So that can’t be the problem
@Rob Galanakis: Will try out.
@DrBob : Is there a way to change the clipping?

Are you setting a specific update rect? Or are you updating the whole screen when you update?

gw.enlargeUpdateRect #whole

As Rob said, code snippet might help.

Here you go :slight_smile:

fn DrawButton =
		(
			gw.setTransform(Matrix3 1)
			if(MBox != null) then
			(
				gw.wrect MBox MColor
				gw.wtext [MBox.x+5,MBox.y+20,0] MName color:white
			)else
			(
				print "no box2 initialised"
			)
			gw.enlargeUpdateRect #whole
			gw.UpdateScreen()
		),

Looks like it’s either graphics card related or language related. That code draws as expected on my machine.

OK thanks for testing.

COUNTDOWN PACK COUNTDOWN PACKNike Air Jordan CP3 Nike Air Jordan CP3TRUE FLIGHT TRUE FLIGHT