Click here to Skip to main content
16,006,531 members
Home / Discussions / Graphics
   

Graphics

 
QuestionZooming an image in a PictureBox Pin
gp005@hotpop.com29-Nov-07 6:46
gp005@hotpop.com29-Nov-07 6:46 
AnswerRe: Zooming an image in a PictureBox Pin
Luc Pattyn29-Nov-07 8:02
sitebuilderLuc Pattyn29-Nov-07 8:02 
Questionhow to draw 3d window Pin
yoel good27-Nov-07 15:10
yoel good27-Nov-07 15:10 
AnswerRe: how to draw 3d window Pin
Stephen Hewitt27-Nov-07 16:57
Stephen Hewitt27-Nov-07 16:57 
GeneralRe: how to draw 3d window Pin
yoel good28-Nov-07 0:35
yoel good28-Nov-07 0:35 
GeneralRe: how to draw 3d window Pin
Mark Salsbery28-Nov-07 5:52
Mark Salsbery28-Nov-07 5:52 
AnswerRe: how to draw 3d window Pin
Maximilien28-Nov-07 3:37
Maximilien28-Nov-07 3:37 
AnswerRe: how to draw 3d window Pin
Pete O'Hanlon30-Nov-07 12:15
mvePete O'Hanlon30-Nov-07 12:15 
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
// File created by CINEMA 4D

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;
  // Extrude_NURBS_1
  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;
  // Extrude_NURBS_1
  4;0,1,5,4;,
  4;1,2,6,5;,
  4;2,3,7,6;,
  4;3,0,4,7;;
  
  MeshNormals {
    8;
    // Extrude_NURBS_1
    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;
    // Extrude_NURBS_1
    4;0,1,5,4;,
    4;1,2,6,5;,
    4;2,3,7,6;,
    4;3,0,4,7;;
    
  }
  MeshTextureCoords {
    8;
    // Extrude_NURBS_1
    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;;
    }
  }
}


Deja View - the feeling that you've seen this post before.

My blog | My articles


QuestionWPF: Rounded rects on only certain corners? Pin
chaiguy133725-Nov-07 13:22
chaiguy133725-Nov-07 13:22 
AnswerRe: WPF: Rounded rects on only certain corners? Pin
Jared Bienz [MSFT]29-Nov-07 5:02
Jared Bienz [MSFT]29-Nov-07 5:02 
GeneralRe: WPF: Rounded rects on only certain corners? Pin
Jared Bienz [MSFT]29-Nov-07 5:04
Jared Bienz [MSFT]29-Nov-07 5:04 
GeneralRe: WPF: Rounded rects on only certain corners? Pin
chaiguy133729-Nov-07 5:32
chaiguy133729-Nov-07 5:32 
QuestionAddind a Toolbar window into a MDI frame window [modified] Pin
Tien-Thong22-Nov-07 12:58
Tien-Thong22-Nov-07 12:58 
AnswerRe: Addind a Toolbar window into a MDI frame window Pin
senthillogin24-Nov-07 3:18
senthillogin24-Nov-07 3:18 
AnswerCross post. Please ignore this thread. Pin
Pete O'Hanlon25-Nov-07 9:24
mvePete O'Hanlon25-Nov-07 9:24 
GeneralRe: Addind a Toolbar window into a MDI frame window Pin
Paul Conrad24-Dec-07 11:33
professionalPaul Conrad24-Dec-07 11:33 
QuestionSave animation to movie Pin
levgiang21-Nov-07 22:05
levgiang21-Nov-07 22:05 
QuestionGraphic Interface Pin
Gaddonis16-Nov-07 1:57
professionalGaddonis16-Nov-07 1:57 
AnswerRe: Graphic Interface Pin
Jheriko++17-Nov-07 15:39
Jheriko++17-Nov-07 15:39 
Questionhow can i the screen image to a pixel format? Pin
bankey101014-Nov-07 0:12
bankey101014-Nov-07 0:12 
AnswerRe: how can i the screen image to a pixel format? Pin
Nathan Holt at EMOM16-Nov-07 7:35
Nathan Holt at EMOM16-Nov-07 7:35 
Questionconvert image to bitmap Pin
dogmatic6913-Nov-07 3:50
dogmatic6913-Nov-07 3:50 
AnswerRe: convert image to bitmap Pin
Mark Salsbery13-Nov-07 9:08
Mark Salsbery13-Nov-07 9:08 
GeneralRe: convert image to bitmap Pin
dogmatic6913-Nov-07 22:12
dogmatic6913-Nov-07 22:12 
GeneralRe: convert image to bitmap Pin
GrinderDev14-Nov-07 1:22
GrinderDev14-Nov-07 1:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.