| Inge Jones | posted: Sat Oct 01, 2005 9:49 pm | |
Member since: 2005-03-06 Posts: 1899
| I'm trying to use a larger texture image and therefore following JWoods instructions to increase mipmap value from 9 to 10. When clicking Build next, I get:
Message:
Invalid parameter used.
SimPE Version:
Default (0.49.2099.26545).
Exception Stack:
System.ArgumentException: Invalid parameter used.
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)
at SimPe.Plugin.TxtrForm.BuildMipMap(Object sender, LinkLabelLinkClickedEventArgs e) in G:\vs.net\SimPE\fullsimpe\SimPe Scenegraph\TxtrForm.cs:line 1225
Source:
System.Drawing
Execution Stack:
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)
at SimPe.Plugin.TxtrForm.BuildMipMap(Object sender, LinkLabelLinkClickedEventArgs e) in G:\vs.net\SimPE\fullsimpe\SimPe Scenegraph\TxtrForm.cs:line 1225 |
| Inge Jones | posted: Sat Oct 01, 2005 9:51 pm | |
Member since: 2005-03-06 Posts: 1899
| I should have posted this in the QA shouldn't I? |
| CTNutmegger | posted: Sun Oct 02, 2005 11:17 pm | |
Member since: 2005-03-25 Posts: 8
| Hi Inge,
What size bitmap are you trying to build with? I had a problem increasing the size until I figured out that the size of the new texture had to conform to a pattern standard.
For an increase to 10 from 9, you would go from 128x256 or 256x128 to 256x512 or 512x256 for a rectangle texture or if square from 256x256 to 512x512. This would give you the 10th image.
Hope that helps, CT
BTW, I love your hacks :D |
| Inge Jones | posted: Sun Oct 02, 2005 11:34 pm | |
Member since: 2005-03-06 Posts: 1899
| Yeah but I wanted to go from rectangular to square, that's probably what upset Simpe :) |
| SolanderCGN | posted: Mon Oct 03, 2005 12:15 am | |
Member since: 2005-03-10 From: Cologne/Germany Posts: 41
| Suggestion: Use those nvidia tools to get the build dtx dialog. Choose a dummy image of the desired sice, import it. The size is automatically adjusted to the appropriate number like 9 or 10. Afterwards you can replace it with your image or just use your image for this from the start. |
| Inge Jones | posted: Mon Oct 03, 2005 12:18 am | |
Member since: 2005-03-06 Posts: 1899
| I got it sorted anyway, through a similar round-about means, but I felt it warranted a report in case it can be/needs to be fixed. |