575 Posted Topics

Member Avatar for khr2003

Scripts are usually chmod 755 ( google it ) so the permissions will be set 'correctly', at least in that no non-priviledged user can edit your files (e.g. an FTP guest). It isn't necessary for the server root password to be compromised for this kind of thing to happen - …

Member Avatar for cwarn23
0
1K
Member Avatar for kipl20

What library/code are you using to import / render the MDL? because that's more than just opengl. If the library you're using doesn't have the facility to load / render animation from MDL files, you'll have alot of work to do: if working from scratch, you have to read the …

Member Avatar for kipl20
0
208
Member Avatar for mrnutty

Heh, that's the kind of error you don't see everyday. Look at the arguments to specialFunc: [code]void specialFunc( int key, [b]int x[/b], int y)[/code] Function argument scope beats global scope.

Member Avatar for MattEvans
0
118
Member Avatar for vedmack

You can't stop the right click action in a plain XML file. On some browsers, you can prevent the right click action in an HTML file, because an HTML file is allowed to run javascript, which is allowed to intercept the right click ( as you've surely discovered ). If …

Member Avatar for HTMLExpert
0
806
Member Avatar for Richy321

Are your transforms 'full 3d' or 'half 3d'? That is, when your character rotates, can they rotate over all axes, or just around an 'up' vector? Are you using matrices as the authoritative representation of the character's transform, or some scalars ( typically x, y,z and rotation ). [b]MATRICES[/b] If …

Member Avatar for Richy321
0
191
Member Avatar for eenceo

looks like you have not called [icode]glEnable ( GL_DEPTH_TEST );[/icode] otherwise, post code

Member Avatar for eenceo
0
133
Member Avatar for MidiMagic

[QUOTE=roryt;784852]Midi, Although you have designed by those rules it really isn't much of a design at all! It is really quite unattractive. I would really like to see a list of popular websites that follow your rules.... I can't find any at all.[/QUOTE] I found the content on midis website …

Member Avatar for SmartBeaver
0
252
Member Avatar for php_noob
Member Avatar for sciwizeh

It seems that GLFW doesn't properly initialize the opengl state machine until you call glfwOpenWindow. Move the call to glEnable ( GL_DEPTH_TEST ); to somewhere after the call to glfwOpenWindow. It should work then. You don't need to call glEnable ( GL_DEPTH_BUFFER_BIT ), at best it's meaningless and at worst …

Member Avatar for MattEvans
0
1K
Member Avatar for Dani

I have a suggestion with regard to the new style, I don't have time to read every previous suggestion in this thread at the moment, so sorry if it's already been suggested.. The new "control panel" dropdown menu is different from the existing forum dropdowns; with the forum dropdowns, clicking …

Member Avatar for William Hemsworth
0
865
Member Avatar for mrnutty

the equation you wrote is a 2d equality, via rearangement you can make an equation in terms of [u]either[/u] 'x' or 'y', e.g.: [code] x = sqrt ( r^2 - y^2 ) [/code] So, you only need to vary 'y', plug-in any such value of 'y' and you'll get one …

Member Avatar for MattEvans
0
154
Member Avatar for mrnutty

From main, (after calling glutInit and before calling glutMainLoop), call your bitmap load function, put the return value into a global int variable ( e.g. texture1 ), repeat for however many textures you want, ( i.e. texture2, texture3, etc.. ). When you want to 'switch a texture on' call glBindTexture …

Member Avatar for mrnutty
0
292
Member Avatar for mrnutty

Am guessing that you have something like: [code] glTranslatef ( x, y, z ); glRotatef ( t, x, y, z ); .... glLightfv ( GL_POSITION, pos ); .... [draw object] [/code] But see: [url]http://www.opengl.org/sdk/docs/man/xhtml/glLight.xml[/url], specifically: [quote]The position is transformed by the modelview matrix when glLight is called (just as if …

Member Avatar for MattEvans
0
108
Member Avatar for it2051229

Lines do not have ends: although a line is often uniquely defined by two endpoints coincident with the line; a 'line' is correctly considered to be infinite in both directions. Line segments are lines with ends... and a 'one ended line' is usually termed either a ray, or a half-line …

Member Avatar for Alibeg
0
142
Member Avatar for michinobu_zoned

It's generally frowned upon to hijack existing threads to ask new, unrelated, questions.. so I'll ask a software development mod to split this thread.. In the meantime: - linux distro? - graphics card? - language you are using? are you absolutely sure opengl isn't installed? most distros usually have installed, …

Member Avatar for MattEvans
0
196
Member Avatar for gproggramer175

Also, it's no harder to work with graphics in C++ than it is to work with graphics in (nearly) any other language. Possibly easier.. since OpenGL is a C library, and OpenGL is, IMHO, the nicest way to work with (3D) graphics.. :)

Member Avatar for MattEvans
0
94
Member Avatar for NekoGráfico
Member Avatar for MosaicFuneral
0
163
Member Avatar for BattlingMaxo

bones often have keyframes... except they're usually rotation keyframes in a bone's local space. if you mean skinning.. the general idea is: > import vertex data such that each vertex has an associated list of influences ( integer ids ) and weights ( normalized across the influences ). > import …

Member Avatar for electroreactive
0
198
Member Avatar for MattEvans

If I add default arguments to the end of my copy constructor, is it still considered a copy constructor? E.g. will it still be used in the places where a copy constructor would normally be used (or automatically generated). I can verify that it works on one compiler (g++). That …

Member Avatar for MattEvans
0
222
Member Avatar for DemonGal711

You don't imply any memory management in the description of the problem: there's no necessity that the nodes/lists even be allocated with new, e.g.: [code] Node a, b; a.next = &b; [/code] You wouldn't want any automatic delete to occur in this case, since you never call new ( a …

Member Avatar for DemonGal711
0
182
Member Avatar for Fox Hound

jbennet doesn't have edit permissions in this forum (neither do I). We don't all moderate all forums.

Member Avatar for jbennet
0
167
Member Avatar for aamresh1

I assume you're including headers from the gnu multiple precision library? If so you need to tell the linker the name of the library.. e.g. [code] gcc multiply1.c -lgmp [/code] If that doesn't work.. make sure you have the library installed and in one of the "normal" library directories.. If …

Member Avatar for aamresh1
0
167
Member Avatar for Shinedevil

The nicest solution (in terms of future flexibility), is to encode your data in either a bitmap image or a text file. Alternatively, if you just want to initialize an array of arrays: [code] // made smaller (4x4) so it fits in a post neatly... string MAP[4][4] = { {"|I|", …

Member Avatar for MattEvans
0
123
Member Avatar for ALAZHARY

The behaviour when dereferencing an invalid pointer is undefined. So I can only speculate on the underlying reason: it probably has to do with how and where stack variables are allocated, e.g. sequential function calls within a given scope might allocate stack variables from the same starting place, so stuff …

Member Avatar for ALAZHARY
0
655
Member Avatar for tiger86

You can patent software in the US, but (rightfully!) not in Europe. Also, there's very little point patenting an entire game, it's too broad, e.g. if you patent a whole game, I'd only have to change a few things to release a very similar but technically non infringing game. You …

Member Avatar for jbennet
0
146
Member Avatar for daviddoria

Well, since arrays deteriorate into pointers to the first element, you could go with: [code]map<unsigned char*, int> ColorList;[/code] If you use this code though, the map will end up containing invalid pointers unless the lifetime of of the array(s) and the lifetime of the map are the same. Also, the …

Member Avatar for daviddoria
0
2K
Member Avatar for kaushik259106
Member Avatar for divyendu

DirectX doesn't necessarily have better performance : it really depends how the graphics card manufacturers build their cards, and write their drivers. Without hardware acceleration, DirectX is probably faster, but only on Windows ( and only because the software implementation of OpenGL from Microsoft isn't great ). With hardware acceleration, …

Member Avatar for MattEvans
0
190
Member Avatar for sidatra79

Some questions to you: - are you using the A* for AI character path planning? ( usual case ), is the 3D space unbounded? if so, are you ok with the fact that 3D A* search in infinite space will nearly always find a path, but that the path might …

Member Avatar for MattEvans
0
212
Member Avatar for MayaVonRothen
Member Avatar for rjrasmussen

Why would you expect the return value from Math.random( ), to have the same value when the function is called twice? That's kind of the point of Math.random( )... Store the result of the [b]first[/b] call to Math.random ( ) into a global variable, and use that value in all …

Member Avatar for rjrasmussen
0
449
Member Avatar for ingeva

To center a block-type object, within another block type object, use this code on the object that you want to be centered ( i.e. on the inner object ): [code]style="margin-left:auto;margin-right:auto;"[/code] although, tbh, [icode]text-align:center;[/icode] really should work, since an image isn't supposed to be a block-type object. anyway, for best compatibility, …

Member Avatar for wickedsunny
0
169
Member Avatar for avillachandok

There are loads of errors: - public / private blocks shouldn't be inside methods, only inside classes ( separating variables / methods ). - function calls look like this [icode]a.shuffle()[/icode], not like this [icode]a.shuffle[/icode]. - the showdeck method seems to be dependant on the variables in deal, that's not going …

Member Avatar for avillachandok
0
132
Member Avatar for Konokai

I don't have a complete answer to this, ( not a mathematical genius! ), but you said you wanted to hear how people might go about this.. and the following is how I'd start: assume: [code] ax, ay = rotation origin for the point ar = initial rotation of the …

Member Avatar for MattEvans
0
119
Member Avatar for Leandro-AL

see: [url]http://www.perl.com/doc/manual/html/pod/perlre.html[/url] specifically the modifier: [quote][b]m [/b] - Treat string as multiple lines. That is, change ``^'' and ``$'' from matching at only the very start or end of the string to the start or end of any line anywhere within the string[/quote] thats a perl site.. but php ripped …

Member Avatar for Leandro-AL
0
138
Member Avatar for sureronald

There's no "simple tag". Quite a few things can go wrong when you look at a page developed using one browser in another browser ( it shouldn't be the case, but it is ). The best method for ensuring you don't get this problem is to look at the site …

Member Avatar for buddylee17
0
117
Member Avatar for evanlarsen

To me, Javascript/HTML/CSS animation always feels like an ugly hack: sure there are libraries available to assist with the lack of any built-in support for graphics*; but then there are libraries to render 3d scenes in graphing calculators [ just because you 'can' doesn't always mean you 'should' ]. Flash …

Member Avatar for evanlarsen
0
112
Member Avatar for dev.cplusplus

If you're doing this for the purpose of input sanitizing, there are probably less 'safe' characters than there are 'unsafe' characters, create a new empty string ( string 2 ) loop over the input string ( string 1 ), one character at a time, if the character is in the …

Member Avatar for ~s.o.s~
0
170
Member Avatar for 2levelsabove

Ajax stands for [b]asynchronous[/b] javascript and xml. Note that you set the onreadystatechange handler to that anonymous function, but you dont have any guarantee that that function will be executed immediately.. i.e. the request will go out, then the rest of the code in the function will execute, then at …

Member Avatar for MattEvans
0
98
Member Avatar for Tony0930

Yes, you can learn XHTML without learning HTML. You should probably learn the difference, though. With regards to the actual code, most XHTML is valid HTML, but somewhat less HTML is valid XHTML ( with some notable exceptions, i.e. a small number of HTML tags are forbidden to have a …

Member Avatar for MattEvans
0
93
Member Avatar for knarffrank

Google don't take kindly to people running automated queries ( including scrapes ) without using their "official APIs", so you may find they block your server from communicating with the Google site if it makes alot of requests like this. Which is hypocritic to say the least, since that's exactly …

Member Avatar for amithc
0
187
Member Avatar for MattEvans

I have a few ( slightly related ) questions about binary i/o in C++, I can't seem to find full answers to these anywhere.. - Is there any way to tell if an i/ostream passed to a function has been opened in binary or text mode? - If not, are …

Member Avatar for MattEvans
0
192
Member Avatar for Alex Edwards

I guess.. just because you can do something doesn't mean you should.. What version of VC++ do you use? If I remember correctly, it didn't use to be possible to create even a static integer in-class declaration in VC++.. because I've had to use enums to achieve the same effect …

Member Avatar for vijayan121
0
1K
Member Avatar for Venom Rush

There are no specific server-side requirements for ajax in itself, but people do often write/use ( custom ) programs that run on their server, and communicate back and forth with certain ajax-enabled pages. It may be that this ajax application requires a similar custom server side program/script, but that's not …

Member Avatar for MattEvans
0
81
Member Avatar for sciwizeh

For 2D point-in-convex or point-in-non-convex, see the crossing test on this page: [url]http://www.erichaines.com/ptinpoly/[/url]. As its given there, that test will work in 2D only, for a 2D shape embedded in 3D, you have to project the point onto the plane of the shape first, if the projection is impossible, obviously …

Member Avatar for sciwizeh
0
169
Member Avatar for vinodcprm

Thats a severe problem with the parser, so ideally, fix the parser. Is it an inhouse solution? If so, use a base framework like SAX2/DOM rather than manually writing the parser component. Will save on alot of potential headaches. If you absolutely must use this parser without fixing it, do …

Member Avatar for MattEvans
0
415
Member Avatar for Ancient Dragon

The site needn't allow HTML, you should be able to hotlink the image ( i.e. ) [url]http://www.daniweb.com/certificates/posts93300.jpg[/url] anywhere, and every new HTTP request to the image will get an updated ( the latest ) version. The reason it may not work here though, is that the forum software may well …

Member Avatar for The Dude
0
150
Member Avatar for kidprogrammer

@Suetan, since the original poster's code is C++, I sincerly doubt that the means for performing a PHP include will be much help... PHP isn't a subset/superset of C++ : PHP is parsed by and interpretted by a C++ runtime engine; if that's what you mean by 'based off of …

Member Avatar for kidprogrammer
0
157
Member Avatar for brr

You can't disable the close button in a popup. It's part of the browser; a webpage rightfully can't assume control over all aspects of the browser. Reorganize your logic so that it isn't an issue, or use a "popup div" instead ( i.e. [url]http://javascript.internet.com/miscellaneous/popup-div.html[/url] ).

Member Avatar for brr
0
71
Member Avatar for JCBond

What your asking is very probably against the terms of the licence of the software. If you're wanting to 'test' on Vista as in try out the product on a new OS, consider contacting a spokesperson from Borland ( or, easier yet, looking for a trial version ). If you …

Member Avatar for JCBond
0
132

The End.