Search:
Type: Posts; User: glsl09
Search:
Search took 0.02 seconds.
-
January 4th, 2012, 03:44 PM
hi. i know this is only for C++. only i want idea from you. i am devoloping simple cad program. there is some shape in QGLWdiget that is to be transleted. my algorithm firstly ask the user to pick...
-
October 28th, 2010, 06:44 PM
pointer version is just array name. for example to pass grades array function
type func(int* array, ......)
{
......................
}
-
October 21st, 2010, 04:34 PM
did you try using Assimp library. it loads obj and also lots of 3D formats.
-
August 20th, 2010, 04:49 PM
problem arises from default parameter of loadNode() function. j is always 0. i removed default j variable and made it as static int j =0 begining of the function. problem is now solved. also i...
-
August 20th, 2010, 04:48 PM
problem arises from default parameter of loadNode() function. j is always 0. i removed default j variable and made it as static int j =0 begining of the function. problem is now solved. also i...
-
August 20th, 2010, 03:44 PM
i use Assimp library to load my model. yes you are right my matrix class is not too safe.
only i want to control if i fill each mesh's member correctly or not.
#include "ModelLoader.h"...
-
August 20th, 2010, 02:17 PM
thank you all for replys. i changed class declaration and definiton the way you said.
/////// Matrix4x4.h
ifndef matrix4x4
#define matrix4x4
class Vector2D;
class Vector3D;
-
August 20th, 2010, 03:01 AM
i write construction for Mesh structure. only first object of Mesh structure is valid. rest have problem why
-
August 19th, 2010, 03:44 PM
ModelLoader.h
//..................................
struct Mesh
{
unsigned int* indices;
float* vertices;
Matrix4x4 matrix;
unsigned int numVertex;
-
March 27th, 2010, 02:43 PM
i read article says if there is 2 class like
//A.h
class A
and
//B.h
class B
-
March 27th, 2010, 01:30 PM
i fixed the problem. i forget putting semicolon end of the Matrix3x3 class. now code is working thanks have a nice evening
-
March 27th, 2010, 01:17 PM
i have one header file Matrix4x4.h . it includes another header files. when i compile the code. it gives error "C2236: unexpected 'class' 'Matrix3x3'. Did you forget a ';'? " where i made mistake....
-
March 21st, 2010, 01:25 PM
initialize temp in get_sequence() with any number. in while( temp != val) val here represents any control number. for example it may be 0. when you assign 0 to temp in
while(temp != val){
...
-
March 15th, 2010, 11:17 AM
thanks laserlight for helping. i will put all friends function and Vector3D class into namespace Vector. then include Vector3D.h in main.cpp like below
//main.cpp
#include <iostream>...
-
March 15th, 2010, 10:36 AM
thanks laserlight your reply. if i put Vector3D class into Vector namespace. when i want to use Vector::distance() function in main.cpp. this makes problem mixed up std::distance() ?
// main.cpp
...
-
March 15th, 2010, 09:45 AM
yes you are right. Vector3D::distance() is mixed up with std::distance(). thanks for helping.
i decided to put friend functions (dot,crossProduct... functions making common calculations) into...
-
March 15th, 2010, 08:33 AM
when i compiled the program i get error below show. you could help me where i made error
c:\program files\microsoft visual studio 8\vc\include\xutility(610) : error C2039: 'iterator_category'...
-
February 25th, 2010, 03:48 AM
no differnce between them. c++ programers prefer the last one to first one because of using reference is more sense. below shows difference
int & ret = i;
ret = 5;
is equal to
-
February 23rd, 2010, 06:15 PM
you store color information in your normal texture RGBA channel. but in bump mapping texture you store normal vector for each fragment.
-
January 26th, 2010, 03:56 PM
thanks you for reply. i think that error arises from Assimp library,loading 3d models.
/////////////////////////////////////////////
//// DefaultLogger.cpp ...
-
January 26th, 2010, 03:31 PM
only warning at debugin mode
warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
i ignore this library (msvcrtd.lib). this time there is no error...
-
January 26th, 2010, 03:24 PM
when i compile program i dont get any error but when program starts up it gives this error. 0xC0000005: Access violation reading location 0x00000010
my code seems no problem. no it...
-
January 25th, 2010, 06:36 AM
thank you very much VictorN. Assimp::Importer importer object keeps ownership of the data and destroys it upon destruction the way you said thanks again VictorN. hava a nice day
-
January 25th, 2010, 06:16 AM
when the code gets error at start up. visual studio show error place in Model:: draw() in Model.cpp.
why i need local importer object after returnnig const aiScene* . i keep returned const aiScene*...
-
January 25th, 2010, 05:48 AM
thank you for replay. i didnt complote code because of it is bit long. i use Assimp library that loads3ds model. ReadFile is not win api. definition of ReadFile
const aiScene* ...
|
Click Here to Expand Forum to Full Width
|