|
Writing Window Manager for Linux is a very big project. It is not going to be a mini project, it is a life time project.
To write a Window Manager you will need to understand Linux at the lower level, you will need to read about Linux kernel, system calls, X-server and many other things. You cannot use Qt, KDevelop, GTK or any other library because they assume that a Window Manager is already running.
If this is only for learning then I will suggest that you write a program in top of an existing Window Manager and you can use Qt for that purpose. This means that your GUI manager will be an application in an existing window manager.
-Saurabh
modified on Sunday, April 25, 2010 9:39 PM
|
|
|
|
|
Sorry if repost.
What is the performance like of Managed DirectX vs Unmanaged DirectX, similarly how is the performance of the XNA framework vs home brewing everything? Is it worth investing anytime in learning something like XNA?
Thanks.Ennis Ray Lynch, Jr. wrote: Unpaid overtime is slavery.
Trollslayer wrote: Meetings - where minutes are taken and hours are lost.
|
|
|
|
|
It all depends on what you are attempting to do, and what you already know how to do:
Reasons to Use XNA:
Don't know DirectX, or are not a control freek(XNA is just shorthand Managed DirectX..Basically). -Caviat You won't be able to modify meshes and models easily(at least as easily as if everything is done in DirectX.
Reasons to used Managed DirectX:
You want to be able to do things on the fly with your graphics, in managed code;
Reasons to Use DirectX:
You are my Idol.
If your going to be using c++ I would recoment Managed DirectX, you will be able to find a lot of resources.
If C# Use XNA Lots of resources and samples..
---Don't use XNA if you want to "Make" models... even Microsoft doesn't attempt to do this.
If you only want to display models..(move em arround etc...) use XNA.
If you wnat to blend between poses.. Use managed/unmanaged DirectX;I'd blame it on the Brain farts.. But lets be honest, it really is more like a Methane factory between my ears some days then it is anything else...
|
|
|
|
|
Hey there
I've got a strange problem... basicly I am writing an .NET (C#) application to render some stuff. By default the rendering works in an panel (Means the device uses the handle of the panel to render stuff there). So now I want to switch to fullscreen mode. Therefor I am creating a window with the size of my test resolution (800x600), release the pointers to the DirectX ressources and reinitialize the device with the window's handle and the fitting presentation parameters (.Windowed = FALSE, .BackBufferWidth/Height = ...). So far so good. It works fine!
Now I want to leave fullscreen mode after the user presses the escape key. I am catching the user input and close the window. The OnFormClosing-Event is connected to an method which does the same procedure descriped above in the other direction. It releases the device ressources and the device, reinitializes it with the panel handle and the presentation parameters (.Windowed = TRUE, BackBufferWidth/Height = 0). And this is the problem! I can see the cursor and how it changes if I am moving it around (and about window borders) but the display stays cleared and the resolution does not change. I don't know whats going wrong there, because if I am using Alt+Tab to select my window containing the panel used for rendering and closing the fullscreen window then everything works fine! (And no the problem also isn't the escape-key or the way it gets checked... this part is working, because the FormClosing-event gets fired.)
Any ideas what could go wrong?
Thanks in advance! http://www.aschratt.com
|
|
|
|
|
Aschratt wrote: Any ideas what could go wrong?
No. It sounds too complex for me, why don't you use a Panel in full size too? Just make your window full size, and fill it with the Panel, possibly by setting panel.Dock=DockStyle.Fill?
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. All Toronto weekends should be extremely wet until we get it automated in regular forums, not just QA.
|
|
|
|
|
|
Allright... problem solved. I simply forgot to release all references to the device
Thanks anyway!http://www.aschratt.com
|
|
|
|
|
I found a book on Geometric Algebra and from the introduction it seems interesting and promising. Supposedly, it extends linear algebra and then simplifies and makes intuitive all sorts of transformations commonly found in graphics, robotics, vision, etc. However, before I spend a lot of time plowing through another 600 pages of math, I thought I'd see if anyone is using it to benefit or has any opinion on it. I've been promised simple and intuitive by mathematicians before.
For the uninitiated, the premise seems to be that you can produce a 5D space and use that to work with your 3D transformations somewhat analogously to the 4D homogeneous coordinates commonly found in projective transformations and everything is lovely.You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
Hi Guys,
I am not a web/graphic designer, but I would like to know if it is true that the web/graphic designs will affect the seo? Let's say for example if I have a lot of graphics, images in my website, does it affects the seo negatively?
Looking for the best answers from you Guys.
Thanks,
Hifigerhifiger2004
|
|
|
|
|
Try asking this in either the Web Development or ASP.NET forums; you'll probably have better luck there. L u n a t i c F r i n g e
|
|
|
|
|
nope
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Yes in so far as the search engines look at things like file size, page load times, etc... But a large amount of images also give you several SEO advantages like img file names, alt tags, etc... The biggest thing you need to pay attention to though is that you don't use your keywords in your images, always make them text or your wasting your time, always optimize your images for the web, and pay attention to layout so your page is laid out in the following order usability/SEO layout/artistic design (which is different than good graphic design)
SEO layout is basically the SE only read the first 350-550 words on a page, so don't create a layout where a bunch of junk comes before your real content.
Hope these basics help
|
|
|
|
|
Hello,
I need to render the mesh.It is given by set of its surfaces
each surface is presented by its vertexes(x,y,z)
The camera and light source has to be placed at the same place.
I use this code:
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
GLdouble diam = m_allModels.getDiam();
GLdouble left = m_allModels.getCenter()[0] - diam;
GLdouble right = m_allModels.getCenter()[0] + diam;
GLdouble bottom = m_allModels.getCenter()[1] - diam;
GLdouble top = m_allModels.getCenter()[1] + diam;
glFrustum(left,right,bottom,top,diam,diam*3.5);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
gluLookAt (0.0, 0.0,2*m_allModels.getDiam(),
m_allModels.getCenter()[0],m_allModels.getCenter()[1],m_allModels.getCenter()[2],
0.0, 1.0, 0.0);
GLfloat light_position[] = {0.0, 0.0,0.0, 1.0 };
GLfloat white_light[] = { 0.7, 0.3, 0.2, 1.0 };
glEnable(GL_DEPTH_TEST);
glEnable(GL_LIGHTING);
glLightfv(GL_LIGHT1, GL_POSITION, light_position);
glLightfv(GL_LIGHT1, GL_DIFFUSE, white_light);
glEnable(GL_LIGHT1);
glShadeModel(GL_FLAT);
glEnable(GL_NORMALIZE);
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
for(unsigned int modelIdx = 0;modelIdx < m_allModels.zise();++modelIdx)
{
model curModel = m_allModels.getModel(modelIdx);
for(unsigned int modelSurfIdx = 0;modelSurfIdx <curModel.surfNum();
++modelSurfIdx)
{
surface curSurf = curModel.getSurface(modelSurfIdx);
glLineWidth(2);
glBegin( GL_POLYGON );
glNormal3f(curSurf.getN_x(),curSurf.getN_y(),curSurf.getN_z());
for(unsigned int vertIdx = 0;vertIdx< curSurf.size();++vertIdx)
{
unsigned int curVertIdx = curSurf.getSurfVertices()[vertIdx];
vertex curVert = curModel.getVertex(curVertIdx);
glVertex3f((GLfloat)curVert.getX(),(GLfloat)curVert.getY(),(GLfloat)curVert.getZ());
}
glEnd();
}
}
And I get this
http://img17.imageshack.us/img17/1103/64347046.png[^]
And I don't understand why
|
|
|
|
|
So what is it supposed to look like? Can't read minds, you know...
I'll take a wild guess and say that, as is often the case with 3rd party models, the winding direction of the polygons is probably inconsistent. If you want to see the entire model, either enable double-sided rendering, or run the model through PoseRay (or some other model cleaner) and fix the polygon winding.L u n a t i c F r i n g e
|
|
|
|
|
it appears that your normals are flip flopped, at least that's what causes my some of my renders to go astray... I'd blame it on the Brain farts.. But lets be honest, it really is more like a Methane factory between my ears some days then it is anything else...
|
|
|
|
|
If i have multiple child windows, each with it's own gl context, and I load up a texture with glGenTextures(), what's the correct way to go about being able to share the same texture with multiple contexts? Do I need to manually load in the image/texture for each context?
|
|
|
|
|
I've never tried this so I can't answer from personal experience. There is just one short mention of this in the edition of the Red Book I have. It says that 'texture objects and display lists can be shared between contexts using wglShareLists'.
So I assume that a texture whose creation is wrapped in a display lists can be shared.L u n a t i c F r i n g e
|
|
|
|
|
Thanks. I found something like that too, haven't got that working yet.
|
|
|
|
|
I am new to ZedGraph and I tryied a lot of things, searched the internet etc. The problem is that I did not find yet how to plot a function with step or with a time constant, and how to plot a derivative function. Can someone please help me? Thank you.
|
|
|
|
|
I would be interested to know why you did not think of looking here[^] first?
MVP 2010 - are they mad?
|
|
|
|
|
Because I did and I didn't found anything?
|
|
|
|
|
I think it is not very likely that you will find more information here, rather than on the ZedGraph website.
However I did just discover this article[^], linked from the ZedGraph site. Try posting your question in the article forum so the author gets to see it.
MVP 2010 - are they mad?
|
|
|
|
|
See, he's getting better results here!
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, I hope we soon get it on regular forums as well]
|
|
|
|
|
but still no concret info.
|
|
|
|
|
I gave you two suggestions, did you try either of them? MVP 2010 - are they mad?
|
|
|
|
|