Solved

GLE library in Tao framework

Posted on 2009-06-30
11
820 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
  • 6
  • 5
11 Comments
 
LVL 39

Expert Comment

by:abel
Comment Utility
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
Comment Utility
yes.... I meant
http://linas.org/gle/.... I want to use it in my tao  windows application.......
0
 

Author Comment

by:jsbsudha
Comment Utility
I want to use that GLE library in my C# 2005 Tao windows application ....
0
 
LVL 39

Expert Comment

by:abel
Comment Utility
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
Comment Utility
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:jsbsudha
Comment Utility

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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now