[Interest] Design shhirts using Qt OpenGL

Jason H scorp1us at yahoo.com
Fri Feb 3 17:42:55 CET 2012


Forget I even mentioned Qt. It is onlt for an experienced web/Qt developer anyway. Yes it's technically possible but I'd probably not go that route myself. 


You'd use PHP's GD to create your images. Depending on your level of drawing flexibility, you might be able to use ImageMagick as someone said. There are PHP bindings for it: http://php.net/manual/en/book.imagick.php This route is probably more up your alley as GD is used for charts and things, and ImageMagick is for pictures. You can combine your pictures and such.

Forget GL, you need nothing that GL provides. You just need to work with raster images. Imagemagick will do that. 

If my understanding is correct, you'd create an image of a T shirt (I'd use inkscape) and export several Tshirt images in various colors as PNG.  Then I'd convert your design to PNG (with the tranparency layer) and then just have a foreach loop combine the T-shirt and design images into a 3rd image that is posted on your website. You can do it live or as a batch script that you only run when new images are added. 


That's as much advice as I can give. And really this is now off-topic for this list.



________________________________
 From: Sujan Dasmahapatra <sujan.dasmahapatra at gmail.com>
To: interest at qt-project.org 
Sent: Friday, February 3, 2012 11:19 AM
Subject: Re: [Interest] Design shhirts using Qt OpenGL
 

Jason I have some queries. Can I use Qt's QGraphicsView to render PHP gd Library's graphics.??? Can I design shirts using gd libray with diferent colors??...If I am able to use Qt then I can also be able to use openGL right??......Please tell me how I should proceed. I need create images of shirts with different colors and then create picture of them and render on the web.
 
 
That's great Jason I am really thankful to you for this information.Thanks for the tutorial I am going through this, if in this aspect I need some more help I'll post it, I am worrying it may be out of our Qt discussion. Anyways Thanks a lot.
>>
>>
>>
>>On Fri, Feb 3, 2012 at 9:01 PM, Jason H <scorp1us at yahoo.com> wrote:
>>
>>If that's all you want to do then don't worry about Qt. If you have PHP, all you need is the GD library for PHP: http://php.net/manual/en/book.image.php
>>>Here's a tutorial: http://php.about.com/od/advancedphp/ss/gd_library.htm
>>>
>>>
>>>
>>>You could use Qt to use QGraphicsView to generate your images as well then call render() and save the image. However this would take a degree of sophistication.
>>>
>>>
>>>I say use PHP/GD. Also look around. there's probably already some library like that. 
>>>
>>>
>>>
>>>
>>>________________________________
>>> From: Sujan Dasmahapatra <sujan.dasmahapatra at gmail.com>
>>>To: interest at qt-project.org 
>>>Sent: Friday, February 3, 2012 10:19 AM
>>>Subject: Re: [Interest] Design shhirts using Qt OpenGL
>>> 
>>>
>>>
>>>Thanks Martina and Jason for your reply
>>> Martin you have given a very informative reply  for me. I want to do exactly like that. Some graphics rendering tool that'll generate PNG images on the fly to the web-server based on the input from the client. I am checking the tool ImageMagic I hope this'd help me. Actaully I want to design some shirts on the graphics tools, based on the user selection from the client those images should be produced and send  the produced images to the client. 
>>>Can ImageMagic do that ??.....Please tell me in some more detail so that I gain some confidence to go forward with this tool. And how I'd talk to the server is ASP.NET is a good tool for the webapplication that'll talk to the graphics tool. Do  I need to deploy the tool on the server??? Can Communication be established  between the graphics tool and webapplication???....Thanks a lot for your help...
>>>Regards
>>>Sujan 
>>>
>>>On Fri, Feb 3, 2012 at 7:16 PM, Martin Holmes <mholmes at uvic.ca> wrote:
>>>
>>>Indeed. Going back through Sujan's messages, he told us that "My website
>>>>is PHP based. So I think I need to learn PHP and if any other tools like
>>>>java applet etc I dont know." Now he's apparently using ASP.NET.
>>>>
>>>>I don't see how Qt has anything to do with the development of web
>>>>applications like this. I could imagine writing a graphics rendering
>>>>library that would generate (for instance) PNGs on the fly, on the
>>>>server side, based on input from web pages, but I don't see how you
>>>>could write anything that did OpenGL rendering in the client's browser
>>>>using Qt. It may be possible -- I'm no expert on the range of things you
>>>>can do with Qt -- but it seems to be the wrong tool for the job. If you
>>>>want to do server-side graphics rendering, great tools like ImageMagick
>>>>already exist.
>>>>
>>>>Cheers,
>>>>Martin
>>>>
>>>>
>>>>On 12-02-03 05:32 AM, Jason H wrote:
>>>>> I think I speak for everyone where when I say "Um, what?!"
>>>>>
>>>>> Assuming you aren't trolling, what doe OpenGL have to do with anything?
>>>>>
>>>>> ------------------------------------------------------------------------
>>>>> *From:* Sujan Dasmahapatra <sujan.dasmahapatra at gmail.com>
>>>>> *To:* interest at qt-project.org
>>>>> *Sent:* Friday, February 3, 2012 3:13 AM
>>>>> *Subject:* [Interest] Design shhirts using Qt OpenGL
>>>>
>>>>>
>>>>> Dear Friends
>>>>> I want to design shirts with different colors of fabrics using QT
>>>>> OpenGL. Then later I want to use the pictures of these shirts on the
>>>>> website. My approach would developing a software that designs and
>>>>> develops shirts with different styles and colors enable for different
>>>>> fabrics using Qt, OpenGL. Then rendering those pictures on the website
>>>>> using ASP.NET <http://ASP.NET>. Can I do That I need your suggestions.
>>>>
>>>>> Please give some suggestions.
>>>>>
>>>>> --
>>>>> Thanks & Regards
>>>>> Sujan Dasmahapatra
>>>>> B.E. (Aeronautics)
>>>>> Bangalore, India
>>>>> Ph:91-9900839788
>>>>> mail id : sujan.dasmahapatra at gmail.com <mailto:sujan.dasmahapatra at gmail.com>
>>>>> yahoo msn : dasmahapatra.aerodynamics at yahoo.co.in
>>>>> <mailto:dasmahapatra.aerodynamics at yahoo.co.in>
>>>>
>>>>> icq # 556023244
>>>>> skype:sujan.dasmahapatra at skyepe.com
>>>>> <mailto:skype%3Asujan.dasmahapatra at skyepe.com>
>>>>> msn: sujan.dasmahapatra at hotmail.com <mailto:sujan.dasmahapatra at hotmail.com>
>>>>
>>>>> public profile : http://in.linkedin.com/pub/sujan-dasmahapatra/17/269/aa6
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Interest mailing list
>>>>> Interest at qt-project.org <mailto:Interest at qt-project.org>
>>>>> http://lists.qt-project.org/mailman/listinfo/interest
>>>>
>>>>>
>>>>>
>>>>_______________________________________________
>>>>Interest mailing list
>>>>Interest at qt-project.org
>>>>http://lists.qt-project.org/mailman/listinfo/interest
>>>>
>>>
>>>
>>>-- 
>>>Thanks & Regards
>>>Sujan Dasmahapatra
>>>B.E. (Aeronautics)
>>>Bangalore, India
>>>Ph:91-9900839788
>>>mail id : sujan.dasmahapatra at gmail.com
>>>yahoo msn : dasmahapatra.aerodynamics at yahoo.co.in
>>>icq # 556023244
>>>skype:sujan.dasmahapatra at skyepe.com
>>>msn: sujan.dasmahapatra at hotmail.com
>>>public profile : http://in.linkedin.com/pub/sujan-dasmahapatra/17/269/aa6
>>>
>>>_______________________________________________
>>>Interest mailing list
>>>Interest at qt-project.org
>>>http://lists.qt-project.org/mailman/listinfo/interest
>>>
>>>
>>>
>>
>>
>>-- 
>>Thanks & Regards
>>Sujan Dasmahapatra
>>B.E. (Aeronautics)
>>Bangalore, India
>>Ph:91-9900839788
>>mail id : sujan.dasmahapatra at gmail.com
>>yahoo msn : dasmahapatra.aerodynamics at yahoo.co.in
>>icq # 556023244
>>skype:sujan.dasmahapatra at skyepe.com
>>msn: sujan.dasmahapatra at hotmail.com
>>public profile : http://in.linkedin.com/pub/sujan-dasmahapatra/17/269/aa6
>>
>
>
>-- 
>Thanks & Regards
>Sujan Dasmahapatra
>B.E. (Aeronautics)
>Bangalore, India
>Ph:91-9900839788
>mail id : sujan.dasmahapatra at gmail.com
>yahoo msn : dasmahapatra.aerodynamics at yahoo.co.in
>icq # 556023244
>skype:sujan.dasmahapatra at skyepe.com
>msn: sujan.dasmahapatra at hotmail.com
>public profile : http://in.linkedin.com/pub/sujan-dasmahapatra/17/269/aa6
>


-- 
Thanks & Regards
Sujan Dasmahapatra
B.E. (Aeronautics)
Bangalore, India
Ph:91-9900839788
mail id : sujan.dasmahapatra at gmail.com
yahoo msn : dasmahapatra.aerodynamics at yahoo.co.in
icq # 556023244
skype:sujan.dasmahapatra at skyepe.com
msn: sujan.dasmahapatra at hotmail.com
public profile : http://in.linkedin.com/pub/sujan-dasmahapatra/17/269/aa6

_______________________________________________
Interest mailing list
Interest at qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120203/c5ef3d6c/attachment.html>


More information about the Interest mailing list