|
Hey
Does any one know of an exporter for .max to .x files. I have the trial version of Autodesk 3D Studio max 8 and also
installed a panda plugin that does this for versions 6 and 7.
However it comes back and says it cannot convert this file type.
Thanks
Dan
At university studying Software Engineering - if i say this line to girls i find they won't talk to me
Dan
|
|
|
|
|
DanB1983 wrote: Does any one know of an exporter for .max to .x files
Nope. Does anything come up on google?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Hey
No there is very little up on google. Mainly brings up .3ds files, tried a few of them and they dont
do the job
Dan
At university studying Software Engineering - if i say this line to girls i find they won't talk to me
Dan
|
|
|
|
|
|
Hey
Much appreciated, I shall give them a wirl and see if they do the job.
Thanks
Dan
At university studying Software Engineering - if i say this line to girls i find they won't talk to me
Dan
|
|
|
|
|
I'm working on an application that displays several large image files simultaneously, and operations on each of the files takes place simultaneously as well, for example when you zoom on one image it zooms all of the images, etc.
I'm using PictureBoxes to display the images.
To do the zooming I first used simply set the SizeMode to zoom and changed the size of the PicutreBox allowing its default methods to resize the image accordingly, as shown below:
public void ZoomImage(double ZoomFactor)<br />
{<br />
zoomFactor = ZoomFactor;<br />
pbImage.SizeMode = PictureBoxSizeMode.Zoom;<br />
pbImage.Height = Convert.ToInt32(Math.Round(origHeight * ZoomFactor));<br />
pbImage.Width = Convert.ToInt32(Math.Round(origWidth * ZoomFactor));<br />
MaximumSize = new Size(pbImage.Width + 10, pbImage.Height + 30);<br />
pbImage.Invalidate();<br />
}
The problem here is that the image quality was poor. I'm not sure what interpolation algorithm it uses to do the resizing, but its not a good one.
Then I tried using a methods that I got from The Code Project that uses Graphics.DrawImage, the core of this code is shown below:
<br />
Bitmap tempBitmap = new Bitmap(pbImage.Width, pbImage.Height, PixelFormat.Format32bppRgb);<br />
<br />
tempBitmap.SetResolution(origionalImage.HorizontalResolution, origionalImage.VerticalResolution);<br />
<br />
Graphics bmGraphics = Graphics.FromImage(tempBitmap);<br />
<br />
bmGraphics.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;<br />
<br />
bmGraphics.DrawImage(origionalImage, 0, 0, pbImage.Width, pbImage.Height);<br />
<br />
bmGraphics.Dispose();<br />
<br />
pbImage.Image = tempBitmap;
The problem with this code is that it is extremely slow. When zooming to 300% it takes about a minute to resize 9 images on the screen. Using the other method it took about half a second.
Likewise, this methods actually creates new full sized images in memory, which ends up taking over a gig of memory then just to zoom in, which then starts paging and makes it even slower.
So, what are some other alternatives? I need to be able to zoom in using high quality interpolation, but PictureBox doesn't allow you to specify the interpolation method, but the method above, which does result in good picture quality, is orders of magnitude too slow and using too much memory.
|
|
|
|
|
Hi,
this is what I would do for simplicity and performance:
- get rid of all those PictureBoxes, replace them each by a Panel;
- load the original images in Bitmap objects once;
- don't create new Bitmaps at different resolutions;
- in each Panel's OnPaint handler simply draw the corresponding image using one of the many
Graphics.DrawImage() overloads that allow to specify both the source Rectangle and the
destination Rectangle, resulting in automatic pan&zoom capabilities.
- when the pan/zoom parameters change, call Invalidate() on all Panels that need a repaint.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
any body please help me!!!
how to draw 3d window(house)
like this!!! with open gl in vb6
-------------
| ---------- |
| | | |
| ----------- |
--------------
window which have 'hole' in the center
please...! i really need tutorial to solve this problem...!!
|
|
|
|
|
I don't think you need OpenGL to do ASCII art!
Steve
|
|
|
|
|
i'm sory! not that i mean... this forum cann't copy some picture so i draw simple window with char
i mean the real window
like on http://www.squ1.com/solartool
but only the window without shading
please any one!!!
|
|
|
|
|
That was GREAT!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
Draw a box and extrude it. Then, draw a smaller box, and use it as a null object to cut it out of the bigger box. Finally, rotate the box. Here's a quick sample of an X file:
xof 0302txt 0064
template Header {
<3D82AB43-62DA-11cf-AB39-0020AF71E433>
WORD major;
WORD minor;
DWORD flags;
}
template Vector {
<3D82AB5E-62DA-11cf-AB39-0020AF71E433>
FLOAT x;
FLOAT y;
FLOAT z;
}
template Coords2d {
<F6F23F44-7686-11cf-8F52-0040333594A3>
FLOAT u;
FLOAT v;
}
template Matrix4x4 {
<F6F23F45-7686-11cf-8F52-0040333594A3>
array FLOAT matrix[16];
}
template ColorRGBA {
<35FF44E0-6C7C-11cf-8F52-0040333594A3>
FLOAT red;
FLOAT green;
FLOAT blue;
FLOAT alpha;
}
template ColorRGB {
<D3E16E81-7835-11cf-8F52-0040333594A3>
FLOAT red;
FLOAT green;
FLOAT blue;
}
template IndexedColor {
<1630B820-7842-11cf-8F52-0040333594A3>
DWORD index;
ColorRGBA indexColor;
}
template Boolean {
<4885AE61-78E8-11cf-8F52-0040333594A3>
WORD truefalse;
}
template Boolean2d {
<4885AE63-78E8-11cf-8F52-0040333594A3>
Boolean u;
Boolean v;
}
template MaterialWrap {
<4885AE60-78E8-11cf-8F52-0040333594A3>
Boolean u;
Boolean v;
}
template TextureFilename {
<A42790E1-7810-11cf-8F52-0040333594A3>
STRING filename;
}
template Material {
<3D82AB4D-62DA-11cf-AB39-0020AF71E433>
ColorRGBA faceColor;
FLOAT power;
ColorRGB specularColor;
ColorRGB emissiveColor;
[...]
}
template MeshFace {
<3D82AB5F-62DA-11cf-AB39-0020AF71E433>
DWORD nFaceVertexIndices;
array DWORD faceVertexIndices[nFaceVertexIndices];
}
template MeshFaceWraps {
<4885AE62-78E8-11cf-8F52-0040333594A3>
DWORD nFaceWrapValues;
Boolean2d faceWrapValues;
}
template MeshTextureCoords {
<F6F23F40-7686-11cf-8F52-0040333594A3>
DWORD nTextureCoords;
array Coords2d textureCoords[nTextureCoords];
}
template MeshMaterialList {
<F6F23F42-7686-11cf-8F52-0040333594A3>
DWORD nMaterials;
DWORD nFaceIndexes;
array DWORD faceIndexes[nFaceIndexes];
[Material]
}
template MeshNormals {
<F6F23F43-7686-11cf-8F52-0040333594A3>
DWORD nNormals;
array Vector normals[nNormals];
DWORD nFaceNormals;
array MeshFace faceNormals[nFaceNormals];
}
template MeshVertexColors {
<1630B821-7842-11cf-8F52-0040333594A3>
DWORD nVertexColors;
array IndexedColor vertexColors[nVertexColors];
}
template Mesh {
<3D82AB44-62DA-11cf-AB39-0020AF71E433>
DWORD nVertices;
array Vector vertices[nVertices];
DWORD nFaces;
array MeshFace faces[nFaces];
[...]
}
template FrameTransformMatrix {
<F6F23F41-7686-11cf-8F52-0040333594A3>
Matrix4x4 frameMatrix;
}
template Frame {
<3D82AB46-62DA-11cf-AB39-0020AF71E433>
[...]
}
Header {
1;
0;
1;
}
Mesh CINEMA4D_Mesh {
8;
180.0;180.0;0.0;,
-180.0;180.0;0.0;,
-180.0;-180.0;0.0;,
180.0;-180.0;0.0;,
180.0;180.0;20.0;,
-180.0;180.0;20.0;,
-180.0;-180.0;20.0;,
180.0;-180.0;20.0;;
4;
4;0,1,5,4;,
4;1,2,6,5;,
4;2,3,7,6;,
4;3,0,4,7;;
MeshNormals {
8;
0.707;0.707;0.0;,
-0.707;0.707;0.0;,
-0.707;-0.707;0.0;,
0.707;-0.707;0.0;,
0.707;0.707;0.0;,
-0.707;0.707;0.0;,
-0.707;-0.707;0.0;,
0.707;-0.707;0.0;;
4;
4;0,1,5,4;,
4;1,2,6,5;,
4;2,3,7,6;,
4;3,0,4,7;;
}
MeshTextureCoords {
8;
1.0;0.0;,
0.25;0.0;,
0.5;0.0;,
0.75;0.0;,
1.0;1.0;,
0.25;1.0;,
0.5;1.0;,
0.75;1.0;;
}
MeshMaterialList {
1;
4;
0,
0,
0,
0;
Material C4DMAT_NONE {
1.0;1.0;1.0;1.0;;
1.0;
0.0;0.0;0.0;;
0.0;0.0;0.0;;
}
}
}
|
|
|
|
|
Hey all. I posted this here because I don't see a specific WPF forum.
I'm curious if anyone else has wanted to or figured out a way to draw rectangles with only certain of the four corners rounded (for e.g. the bottom corners only). I bet I could sit down and work out a way to do this, but I'm new to WPF so wanted to see if it's been done before.
Thanks,
Logan
{o,o}.oO( Did somebody say MouseDown? )
|)””’)
-”-”-
|
|
|
|
|
You can do it, but you have to get a bit tricky. The window border itself can’t be changed, but you can make a borderless window with a shape inside of it that does what you want. You then have to enable dragging the ‘window’ based on dragging its contents, but it’s not a big deal.
Start by setting the following styles on the window:
WindowStyle="None"
Background="{x:Null}"
AllowsTransparency="True"
ResizeMode="NoResize"
Inside this window you’ll need to place a Border object. Inside the Border you can place whatever you want. Now on the Border set its CornerRadius to something like CornerRadius="0,22,0,22" and set your fill and stroke as desired.
Finally, you’ll need to be able to reposition the window regardless of where the user clicks. Fortunately WPF lets you capture events both on the way down (Preview) and on the way back up through the element stack (Element). So to complete your project, in your window class add the following code:
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
{
base.OnMouseLeftButtonDown(e);
DragMove();
}
And that’s it. You can use this trick for creating windows of literally any shape. Even animation should be supported, though I haven’t tried it. Disclaimer: I’ve only tried this on Vista. I think it SHOULD work on XP, but the Desktop Window Manager in Vista may make a difference.
My posts may include factual data, educated guesses, personal opinion and dry humor. They should not be treated as an official Microsoft statement. Sites of Interest: MSDN Events | US ISV Team Blog
|
|
|
|
|
Ha ha ha. I just realized you only needed the rounded rectangle and I took you all the way to the rounded window. Oh well, all you needed was the CornerRadius bit. And I think you even wrote an article already? Well, good job!
My posts may include factual data, educated guesses, personal opinion and dry humor. They should not be treated as an official Microsoft statement. Sites of Interest: MSDN Events | US ISV Team Blog
|
|
|
|
|
Haha, yes I wrote an article for a Shape-derived class called PartiallyRoundedRectangle before I found out about Border's ability to do essentially the same thing. I found out about that through the article though, so it wasn't a complete waste of time.
Thanks for the in-depth instructions for making rounded borderless windows even if it's not exactly what I was asking for.
Logan
{o,o}.oO( Did somebody say MouseDown? )
|)””’)
-”-”-
|
|
|
|
|
Hi,
I'm actually writing a CLIENT/SERVER TCP/IPv6 application, under Microsoft Visual Studio C++. In which the SERVER is a file server application and the CLIENT is a "Multiple Document Interface (MDI)" and "RichEdit Text" application that can open multiple files from the server.
I would like to add a Toolbar window into my MDI frame window, to do this, I've created the Toolbar window with the "CreateToolBarEx" function.
But the created Toolbar window is located in the client area of the MDI frame window and each time a new MDI child window is created to hold a new document, it erases the Toolbar window in the client area.
My question is how can I do :
1) To change the client area size so that fits
height(MDI Frame window) - height(Toolbar window)
OR
2) To include the Toolbar window into the
non-client area like the Menubar and the Titlebar
So that the MDI child window can't anymore erase the Toolbar window in the client area.
Thanks,
Alain NGUYEN
-- modified at 19:12 Thursday 22nd November, 2007
|
|
|
|
|
|
|
Don't cross post. It's just plain rude.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Sorry if my english is not good.
I'm building a program on Windows that take in a table and draws chart, text and some animation effect(text running in bottom of screen). The program must export that to a .avi file.
How can i do that?Do you know any library that can directly manipulate a .avi file like draw on a frame.
Or a library can convert a list of pictures to .avi file.
le van giang
|
|
|
|
|
Hello to anybody.
I would like to know how to create a graphic interface like the one used, for example, in PowerDvd or in Windows MediaPlayer which represents the music using graphic effects.
Thanks for any valuable aid you can give to me.
|
|
|
|
|
Winamp comes with AVS which lets you make visualisation with a simple scripting language
http://www.winamp.com
Its quite good as a soft introduction into graphics programming
|
|
|
|
|
Hello All,
i am working with a application by using VC++/MFC and Direct3d. i am new with Direct3D but in this application graphics is drawing using direct3d.
so i want to take printout of its view area means whatever drawing is there.
is there any way so that i can store the screen image into pixwl format into a buffer or a file, and than send to printer for taking printout.
or anyother way to do this.
Would appreciate any good help
thanks
|
|
|
|
|