Solved

GLE library in Tao framework

Posted on 2009-06-30
11
847 Views
Last Modified: 2013-12-26
There is a GLE class in CSGL( C sharp Graphics library)....Is it possible  to have a GLE calss in in tao framework.........I want to use GLE ( Tubing and extrusion library) in Tao framework....... any library available.......? Or any other solution to do this....
0
Comment
Question by:jsbsudha
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
11 Comments
 
LVL 39

Expert Comment

by:abel
ID: 24743341
You didn't follow-up in the other question of you. Before you low-grade, it is good practice to first give the expert the possibility to make you entirely satisfied by following up with what you are missing. I'll try again regardless...

The CSGL is a discontinued library. The Tao Framework was a complete rewrite of the CSGL. Neither CSGL nor Tao has a class named GLE (at least, I couldn't find it). Perhaps you meant this: http://linas.org/gle/?

-- Abel --
0
 

Author Comment

by:jsbsudha
ID: 24743422
yes.... I meant
http://linas.org/gle/.... I want to use it in my tao  windows application.......
0
 

Author Comment

by:jsbsudha
ID: 24743436
I want to use that GLE library in my C# 2005 Tao windows application ....
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 39

Expert Comment

by:abel
ID: 24743452
Tao is a framework for OpenGL so you can call any OpenGL function from your code. GLE is a library that uses OpenGL internally and exposes higher order functions for drawing tubes. You can download GLE and compile it with MS Visual Studio in C++ or C. The resulting libraries can be used in C++ or C using the examples on this page: http://www.linas.org/gle/tube.html

If you want to interop with the C++ native libraries, you need to use DllImport inside your C# with pointers to the DLL you just compiled. I recommend sticking to C++ because that's probably easier, unless you're strong in interop'ing.

-- Abel --
0
 
LVL 39

Expert Comment

by:abel
ID: 24743458
Just to make this clear: Tao and GLE don't know anything from each other and can be used next to each other but cannot use each other because they are simply two different worlds.
0
 

Author Comment

by:jsbsudha
ID: 24743504

Refer   "csgl.sourceforge.net" . You can find the  following text in that page.......Something has mentioned about GLE class in Csgl.......That's why I asked about it.......May be I can be wrong but I want to clear my doubts bcos I am a begginer in this subject...........
*****************************************************************************************************************************
Features
Help wanted
A new sub-project (module) is checked in CVS: csGLE.
It aims to be a C# implementation of the GLE (http://linas.org/gle/) library.
For now I just exposed all GLE.h function in a CsGL.GLE.GLE class. They do nothing but the project build.
I will contribute, but slowly to this project, but any patch or examples are welcome and will be commited hastily, I could eventually grant CVS access.
By the way my IDE is SharpDevelop (http://www.ICsharpCode.net) and it will compile the project with a single stroke on 'F8'.
******************************************************************************************************************************
0
 
LVL 39

Expert Comment

by:abel
ID: 24743632
Yes, I see now what you mean. But the CSGL project has been discontinued. As they say in this text, they haven't done anything but linking to the *.h files. I wouldn't rely on it. Actually, you shouldn't use CSGL anymore, as the author says in its opening statement.

Here's someone who tried it with Tao: http://www.taoframework.com/node/734, but the result is not really comforting.

You say you are a beginner. May I suggest starting with something easier, the Tao examples for instance, before attempting something as daunting as tubes, C++ compiling and Interop? I don't want to spoil your appetite, but unless you are quite acquainted to the technology, I wouldn't use such a high level library myself until I know the basics... And Tao is really easy to use and should get you started quickly ;-)

-- Abel --

PS: if you're up for it, Tao has quite a lively community, you can either ask the community abou this GLE thing or you can offer to import it yourself and give it back to the community so they can add it as an extension.
0
 

Author Comment

by:jsbsudha
ID: 24743679
I will consider your reply........ Before that....
>>You didn't follow-up in the other question of you. Before you low-grade, it is good practice to first >>give the expert the possibility to make you entirely satisfied by following up with what you are missing..
I want to draw some vertical or horizontal lines inside  a 2dpolygons( which is called as hatching a polygon)..
1, The number of lines  should be drawn are not provided....
2, angle , color for the lines are provided...
 I should follow scanlinepolygonfill algorithm to draw the lines inside the  polygon... But I think it will be time consuming........ so I thought of using polygon stipple to do that... but I t was not useful... That's why I didn't continue it........ If you have any idea you can write to me.......

Reagding this question ,I will  explore  about GLE libraray further and will come back to you.....





0
 
LVL 39

Expert Comment

by:abel
ID: 24743860
Thanks for the follow-up on the other question, it is appreciated.

FYI: On Experts-Exchange it is a common practice (guideline) that when the asker changes his approach, the value of the question and/or the answer does not change. I.e. "what's the road to pasadena?" "turn left-right-left-straight". "sorry, not a good answer, i go to Tucson". At experts-exchange, the answer, if correct, still has merit, because there are other people going to Pasadena... On grading questions: http://www.experts-exchange.com/help.jsp?hi=403

Back on topic: try to work a bit with the Tao library. You'll quickly find that it is quite easy to use and you may not need the GLE for your task (as I understand it, you need a service that cuts through a donut, or any polygon for that matter).
0
 

Author Comment

by:jsbsudha
ID: 24770915
Abel:
I explored about csgl and tao framework... I can see more advantages in csgl than Tao framework...
1, Csgl.opengltexture2D is avaialvble  which is easy to bind texture on a polygon
but in tao framework there is no such ready made  thing avaialble

2, GDItexturefont or gdifont can be easily used in csgl than tao framework......i could not find more advantage in tao framework than csgl.....

Finally   if i develop a program in  csgl now.......is it really forbidden to do that...... or there is a chance that these  csgl libraries will be removed in the future.....kindly give me your suggestion....


se  both?
0
 
LVL 39

Accepted Solution

by:
abel earned 500 total points
ID: 24771407
There's nothing that stops you from using both libraries. But CSGL is discontinued many years ago. If it works, use it. If it has bugs then don't expect them to be fixed. Also, CSGL is very limited compared to Tao. It's methods are different, it requires an unmanaged DLL to function, whereas Tao is managed only.

Tao was a from the ground up rewrite of CSGL. But if you look at the vast amount of libraries it contains, it has become much more. I don't know about GdiFont, sounds like something GDI, which is something that has nothing to do with OpenGL (at least not directly related). If you check this thread, esp. the beginning, you'll see that Tao has always been considered a low level framework and that as of yet, higher level functiononalities have not been added: http://www.opentk.com/node/101

I haven't looked to the ten or so additional libraries from Tao, maybe something similar is in there. Your best bet for certain in-depth questions on Tao can be asked directly on the forum or to the author. You'll find him quite responsive (just create an account and go to the forum).

What you're using in the end is up to you. Personally I would prefer a better thought-through framework like Tao that has seen many more development hours then the alternative, CSGL. The latter states very clear on its homepage that it has discontinued the project and that its project found a rewrite in Tao. Don't worry about it becoming unavailable. Once you have downloaded it, you have a copy of the latest version and that will never change.

The choice is up to you, but my advice, even though some functionality is not copied, would always be: take something that is alive and supported and move away from the stuff that isn't.

-- Abel --
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question