|
You better read the posting guide lines[^] and report your question. There isn't a single person here that's going to read all that code.
|
|
|
|
|
My bad... Umm... then i'll just restate my dillema in short... My fullscreen OpenGL window flickers... Any ideas why??
hmm... Unless, I try a stripped down win32 window...
see if it's not my window attributes...
if that don't work, I'll try a stripped down OpenGL wrapper class.
If that don't work...
help?
Well, I try this out, could I ask for any feedback?
Oh, Thanks a ton for not coming down on me for that long post... I just cut and pasted, didnt expect it to be as long as that lol
SaGE SaneT
|
|
|
|
|
sagetarian wrote: hmm... Unless, I try a stripped down win32 window...
see if it's not my window attributes...
reducing the problem to the least complex definition allows for rapid testing of new techniques as well as diagnosis of problems related to a specific interface (windows). I am not likely to look through all that code either. You can compare against other implimentations of windowing GL code (Nehe, and others) to see if you did something obviously wrong.
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
Thanks for the advice El Corazon, strangely enough I just gave that advice to my IT class, lol...
And lo and behold... Windows attributes people... It got so bad wglMakeCurrent(0,0) crashed the program... even in my previously working back-ups
Finally i have returned to my window class, and have rebuilt it from scratch... it is looking a lot more tidy if i might add
once again, thanks for the feedback.
nehe rules everyone, haven't looked at it in ages (lol) but it is a brilliant source to turn to for some heads up and know how of OpenGL code...
viva OpenGL...
That poses another discussion...
do you think OpenGL 3.0 will every see light, with the dawning of DirectX 10's completely new structure...
a mag that i read said that it highly unlikely that OpenGL will come close to its opposition... but i rekon, that given the time and effort... anything is possible when it comes to coding our friendly beasts... The PC
SaGE SaneT
|
|
|
|
|
sagetarian wrote: do you think OpenGL 3.0 will every see light, with the dawning of DirectX 10's completely new structure...
yes. All things in time.
sagetarian wrote: a mag that i read said that it highly unlikely that OpenGL will come close to its opposition...
Perhaps, perhaps not. Microsoft has the advantage that it does not answer to a committee, that means changes happen fast. Still OpenGL has broad support in multple platforms, so holds its own. I don't think it is going away. Microsoft has settled it's dispute with the OpenGL committee by ignoring it, but letting other companies support it. That will work as long as it works, no more, no less. But... on the plus side, MS has tried to kill OpenGL now 3 times and failed every time, 4 if you count the failed Fahrenheit project that was to merge DirectX and OpenGL -- that was killed.
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
El Corazon wrote: merge DirectX and OpenGL
haven't tried it... sounds pointless at the moment... but it's cool to know thats possible... especially because DirectX 10 has certain features, like programming on the GPU... then again do we want to merge them... and if we gonna use DirectX at all, why use OpenGL to that effect... unless you want the engine to be semi cross-platformable... in which case, just use DirectX in class that has the same polymorphic ability....
Once again... why merge 'em?
strange...
SaGE SaneT
|
|
|
|
|
sagetarian wrote: Once again... why merge 'em
This was a failed attempt to create one non-competing standard for all platform graphics, replacing both DirectX and OpenGL. It failed because of the power struggle within the committee. Sun still holds a grudge against MS and MS still holds a grudge against a few others. The idea was that without the competition they could work on creating a super set of functionality on the scale of a full scenegraph as well as low-level functionality. The project tore itself apart internally and the result was we still have DirectX and OpenGL as competitors for "some" markets. Some meaning that cross platform there still is no choice.
In OpenGL 2.0+ you can do some GPU programming. It at least doesn't prevent you, you even have a choice of GPU languages depending on your personal favorites (CUDA, Cg, OSL, etc.). I've been doing GPU programming using vendor extensions since 1.5 was released.
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
Hi. Is it possible to embed DirectX application in a C# Windows form? The problem is that the application is written in C++.
|
|
|
|
|
Due to DirectX being involved, more than likely not.
|
|
|
|
|
I don't know about embedding applications in forms, but...
The newer/newest DirectX SDKs include separate documentation for managed languages.
The info should be there.
Introducing DirectX 9.0 for Managed Code[^]
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi,
I draw some graphics in a form,such as rectangles,lines.Now when i double click the form,how can i know which graphics i selected or i selected nothing. and then i want to do something with the graphics.
In other say ,how can i get the graphics when i click it??
i use C#
|
|
|
|
|
ok you just see it on trenster and you can select it again it easy
sonarat
I don't know how to tell you but I like IT and Designingas well as Graphic
|
|
|
|
|
Hi,
Im hoping someone here can help...
I am involved in a project that needs to perform some image analysis on an image to interpret results. The functions I need are as follows: scaling image, image rotation and finally analysis at a pixel level. We are running on WinCE and coding with C#. I am able to find image processing libraries for WinXP which unfortunately don't work on WinCE due to the cut down functionality in Compact Framework 2.0.
I haven't been able to find a WinCE compliant package. Maybe someone here knows of one? Any other suggestions?
Hoping for some leads...
Regards,
Myron
|
|
|
|
|
Myron - Accusoft indicates support for the compact framework.
Accusoft
|
|
|
|
|
Thanks for the reply. I have seen Accusoft but they are not cheap!
Regards,
Myron
|
|
|
|
|
For a camera which support DirectShow, I can easily get it used via DirectShow, preview video, capture image, record, and so on. Now my problem is I want to know which usb controller and port the camera I'm using is conneted to. I can also get all usb controllers and usb cameras and their connection map via WMI, but can not match the same usb device bewteen DirectShow and WMI. Is their a identifier for me or some way else?
Thanks
Clark Nu
|
|
|
|
|
hii... i'd like to ask if someone know how can i read 3 DIM vectors valuse of (static type) from file(any external file on any drive of PC) using C++.. my application is programmed by C++ with OpenGL.
regards
miss maria
|
|
|
|
|
Miss_ Petrovna wrote: how can i read 3 DIM vectors valuse of (static type) from file
how are the vectors defined... generally I have a vector < some3dstructure > storage. and then I simply read into some3dstructure and then push_back(some3dstructure) into the vector. This makes it real easy to read/write binary data. Text data is not really a little more difficult, but rather just a few more steps to keep track of and get right.
-- modified at 18:22 Monday 23rd July, 2007
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
Thankx El Corazon for Ur perfect opinion. i was looking for efficient way to read static info. from a file for program generality instead of reading binary data directly (this what i did in my program).Ur opinion is very nice from phelosophical view too .
regards
maria
-- modified at 5:51 Friday 27th July, 2007
|
|
|
|
|
Miss_ Petrovna wrote: i was looking for efficient way to read static info. from a file for program generality instead of reading binary data directly
they are not that much different. A routine for processing the vector information can in its simplest form be binary read/write. With minor changes you can use routines to provide an interface to/from the binary form to XML, or other text formats, or any format for that matter. They all have generally the same inforamtion, they simply put it in different forms or locations within the file.
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
thank U again El Corazon for UR rich information about my question.. frankly, i'll avoid the complexity and errors which may be accured when data r read from file. both of UR opinions are satisfactory and perfect.. I have built my program upon UR first opinion, i'll keep UR second perfect suggestion for future work .
regards
maria
-- modified at 14:42 Sunday 29th July, 2007
|
|
|
|
|
I created a charting control for work in ASP.NET, and so far, they are thrilled. It has a bar chart, and a pie chart. Now they want a line chart (like a vertical bar). I have it working, but now they want each bar to look 3D.
Each item is passed into a collection on the control. An item consists of a color and amount. The chart is built by the percentage of each item in the total of all items.
Now they want the line chart (vertical bar) to have a 3D feel. I was able to get the 3D look, but I'm having a problem determining the values for the lighter and darker parts of each item. I need to figure out a lighter (and a darker) color for the passed value.
For example, the bar color would be red. For the shadowed part of the bar, I need a darker red. For the top of the bar, I need a lighter color. But since each item color is being passed, I need to determine these colors on the fly.
Something like GetDarkerColor(PassedColor) would be great. I just don't know how to determine these values.
Any help would be greatly appreciated.
|
|
|
|
|
Hi,
you could convert to HSB (hue, saturation, brightness) using Color.GetXXX() methods,
adjust brightness a bit, (watch out for over/underflow)
and convert back. You need to write that part yourself !
This article[^] is my preferred article for june and may help you.
BTW in the Java world GetLighter() and GetDarker() (or something of that nature) do exist.
|
|
|
|
|
hey...
need help in 2D drawing ...I want to add drawing ablity for elliptical curves, arcs and ellipses...most of the tutorials i have seen just draw static curves..
I want the drawings to be based on points specified by the user(through mouse clicks) but I having a little trouble in drawing circular arcs using three points(like in AutoCAD)...
any help will be appreciated
thanks
|
|
|
|
|
hello guys.
Im not a graphics person but I need help with something.I need a man, preferebly South African with all the states.I want to be able to click on the individual states and get to another picture.Im designing a web page for my company and I have subsidiaries in different states.I want info of those subsidiaries when I click, which I can display on the page.How do I get a map like that.ive googled and don get anything.
kagiso
|
|
|
|